mysql - SQL syntax; check the manual that corresponds to your MariaDB server version - delete query -


i can't tell wrong here, have tried replacing id = '$id' , still not working. removing clause makes works fine. id variable not have problem has it's value. can me figure out? thanks

  $id = $_get['id'];    $status = $con->exec("update wine set confirmstatus = 'confirmed' id = '".$id."' "); 

try without enclosing $id- value within ' ':

  $status = $con->exec("update wine set confirmstatus = 'confirmed' id = ".$id); 

if works, please still consider gordon's comment regarding using parameters...


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -