Question about “Update” with WPDB
-
Hi Guys!
Quick question! I’m using the WPDB class to connect to a wordpress database for a small puzzle that’s going to run in my client’s blog. I’ve got the basic demo for the client to try out almost done, but I had a question.
Basically, I want have an UPDATE statement using WPDB syntax (i.e.
$wpdb->update($table, $data, $where);
with a X > Y type statement in the $where array, and for some reason I can’t figure it out.Equality statements are easy: you just use normal array syntax and have
$where = array('column_name' => 'value_to_check_for');
but writing it so that the column_name > value_to_check_for is escaping me.Can anyone help me out?
Thanks!
–Lisa
- The topic ‘Question about “Update” with WPDB’ is closed to new replies.