$wpdb->insert isn't working for me…
-
I’m using the following code:
$wpdb->insert('wp_network_members', $insert_member_data);
an example value for $insert_member_data is:
Array ( [f_name] => Joe [l_name] => Smith [title] => CEO [company_name] => Acme Inc. [company_description] => Something about us [join_date] => 2011-03-17 )
Is there a reason this isn’t working? If it makes a difference, manually typing the array into the line as below works fine, but with quite a few fields, it becomes cumbersome.
$wpdb->insert( 'wp_network_members', array( 'f_name' => 'Joe'));
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘$wpdb->insert isn't working for me…’ is closed to new replies.