Example code for insertingĀ a row into a WordPress table that has three columns:
[php]
$wpdb->insert(
‘wp_table’,
array(
‘column1’ => ‘value1’,
‘column2’ => 123,
‘column3’ => $var,
),
array(
‘%s’,
‘%d’,
‘%s’
)
);
[/php]
WordPress $wpdb example scripts and the global $wpdb teeshirt