Answers for "update wordpress query"

PHP
0

update query wordpress

global $wpdb;
$dbData = array();
$dbData['last_login_time'] = time();

$wpdb->update('table_name', $dbData, array('user_id' => 1));
Posted by: Guest on October-31-2020
-2

update wordpress query

$execut= $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_nicename = %d WHERE ID = %s", "Harde_Bande", 546 ) );
var_dump($execut);
Posted by: Guest on November-06-2020
-2

update wordpress query

$wpdb->query($wpdb->prepare("UPDATE $table_name SET time=$current_timestamp WHERE userid=$userid"));
Posted by: Guest on November-06-2020

Browse Popular Code Answers by Language