Jump to content

help me debug my sql query


Guest

Recommended Posts

i'm trying to UPDATE on multiple rows at once...

 

i saw an example on the net but it gives me a sql error

 

 

$query = "UPDATE news3 SET (valide,localisation,addresse,google) VALUES ('1','$localisation','$addresse','$google') WHERE id = '$band'";

 

all variables are $_POST values and i verified them all

 

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(valide,localisation,addresse,google) VALUES ('1','Bas-St-Laurent','33333','3333' at line 1
Link to comment
https://forums.phpfreaks.com/topic/99787-help-me-debug-my-sql-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.