I want to update some fields of table users, but i get this error:
Fatal error: Call to a member function bind_param() on a non-object in C:\Users\fel\VertrigoServ\www\login\thumb.php on line 79
there is any syntax error in the code?
$user=2;
($sql = $db -> prepare('UPDATE users SET (profile_photo, update_photo) VALUES (?, ?) where id_user=?'));
$sql -> bind_param('ssi', $thumbnailPath, $thumbnailPathMin, $user); //line 79
$sql -> execute();