Does $wpdb->update always return 0 (zero) ?
-
I’m running the following query:
$result = $wpdb->update($table_name , array( values here), array( 'id' => $eventID) );
The query is executed and the data is updated.
But echoing $result, shows the value 0 (zero).
I’ve also doubled checked the query found in mysql_queries.log file and ran this in Toad for MySQL. The query executed just fine.
So why does $wpdb->update return 0 (zero)?
Shouldn’t this be 1 if successfully executed?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Does $wpdb->update always return 0 (zero) ?’ is closed to new replies.