WordPress database does not update with my code
-
Hey everyone,
I am trying to update my mysql wp database.
I have this code, it compares withu the date how is selected.
But it won’t update. Is the query wrong?$mydate = date('Y-m-d', strtotime($date)); global $wpdb; $wpdb->update( 'wpxt_availability', array( 'Available' => 'false', // string 'first_name' => $_POST['Firstname'], // string 'last_name' => $_POST['Lastname'], // string 'Phone' => $_POST['Phone'], // string 'Email' => $_POST['Email'], // string 'Extra' => $_POST['Extra'], // string ), array( 'Date' => '$mydate' ), array( '%s', // value1 ), array( '%d' ) ); Echo "Aangepast"; echo $mydate;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘WordPress database does not update with my code’ is closed to new replies.