$wpdb->update
-
This a fragment from a program that accepts an ID number and then posts it to a record.
Worked fine in SQL but clearly the $wpdb version is missing something..
echo gets AAUW_New_Members 99999 Array Array$table_name = 'AAUW_New_Members'; $MemberID = '99999'; $data_update = array('MemberID'=>'$MemberID'); $data_where = array('LastName' => 'Curie'); echo $table_name; echo $MemberID; echo $data_update; echo $data_where; $wpdb->update($table_name, $data_update, $data_where); exit( var_dump( $wpdb->last_query ) );
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘$wpdb->update’ is closed to new replies.