update query wordpress
global $wpdb;
$dbData = array();
$dbData['last_login_time'] = time();
$wpdb->update('table_name', $dbData, array('user_id' => 1));
update query wordpress
global $wpdb;
$dbData = array();
$dbData['last_login_time'] = time();
$wpdb->update('table_name', $dbData, array('user_id' => 1));
update wordpress query
$execut= $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_nicename = %d WHERE ID = %s", "Harde_Bande", 546 ) );
var_dump($execut);
update wordpress query
$wpdb->query($wpdb->prepare("UPDATE $table_name SET time=$current_timestamp WHERE userid=$userid"));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us