Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wpdb->prepare

$table_name='myTable';
 
$myID=12;
 
$wpdb->query($wpdb->prepare("UPDATE `$table_name` SET `your_column_1` = 1 WHERE `$table_name`.`your_column_id` = %d", $myID));
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+4 =