29.11.2011, 08:35
The error in the query:
Help, please!
PHP код:
format(query,sizeof(query),"UPDATE "TABLE_CARS" SET lock=%i, vehcoms='%s', paintjob=%i WHERE id=%i"
,CarInfo[c][cLock],CarInfo[c][cVehcom],CarInfo[c][cPaintjob],c);
mysql_query(query);
PHP код:
CMySQLHandler::Query(UPDATE cars SET lock=0, vehcoms='0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0', paintjob=0 WHERE id=1) - An error has occured. (Error ID: 1064, 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 'lock=0, vehcoms='0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0', paintjob=0 WHERE id=' at line 1)