I want to update the views only when certain things are shown… so i’ve a code for that.. but now to update it.. would this work???
$wpdb->update( $table, array( 'views' => 'views'+1 ), array( 'id' => $new_result->id ) ); ?>
or how do i increment it with the wpdb syntax?
Thanks in advance!
- The topic ‘sql update in wpdb: increment a column’ is closed to new replies.