MYSQL query error
#2

It's an SQL syntax error, John_Kayle is a string, therefore it must be wrapped in quotes in the query, like so:

pawn Код:
"INSERT INTO `privateveh` (`vID`, `vModel`, `vColor1`, `vColor2`, `vPrice`, `vOwner`, `vPosX`, `vPosY`, `vPosZ`, `vPosA`) VALUES (%d, %d, %d, %d, %d, '%s', %f, %f, %f, %f)
Reply


Messages In This Thread
MYSQL query error - by ajwar - 13.02.2011, 19:13
Re: MYSQL query error - by JaTochNietDan - 13.02.2011, 19:15
Re: MYSQL query error - by ajwar - 13.02.2011, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)