Insert in wpdb wordpress

Report
Question

Please briefly explain why you feel this question should be reported .

Report
Cancel

Here is example code for inserting multiple columns in wordpress

$wpdb->insert(
‘wp_table’,
array(
‘column1’ => ‘value1’,
‘column2’ => 123,
‘column3’ => $var,
),
array(
‘%s’,
‘%d’,
‘%s’
)
);

0
WordPress 3 months 0 Answer 45 views 0

About Irfan

I love to Develop Websites, Applications and UI Design. I'm a Certified Developer, blogger and owner of Codexjunction.com. My friends call me WordPress Expert too. I like to learn and share technical stuff. For more info quick message me, I'll help you out.

Leave an answer

Captcha Click on image to update the captcha .

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>