MYSQL String
#1

Hi all! I've got this code:

Код:
new string[128];
format(string, sizeof(string), "INSERT INTO `Vehicles` (ID,Carname,Numberplate,X_Chord,Color) VALUES ('%d','%s','%s','%f','%d')",carid, VehicleNames[carid-400], inputtext, X_Chord, color);
mysql_query(string);
But when i try insert one more thing into a column it doesn't do that, it has some kind of limit or what? How can i avoid it?

For Example this
Код:
new string[128];
format(string, sizeof(string), "INSERT INTO `Vehicles` (ID,Carname,Numberplate,X_Chord,Color,Y_Chord) VALUES ('%d','%s','%s','%f','%d','%f')",carid, VehicleNames[carid-400], inputtext, X_Chord, color,Y_Chord);
mysql_query(string);
So it doesn't work
Reply


Messages In This Thread
MYSQL String - by Scofield62 - 25.12.2012, 08:15
Re: MYSQL String - by nGen.SoNNy - 25.12.2012, 08:39
Re: MYSQL String - by Scofield62 - 25.12.2012, 09:31
Re: MYSQL String - by Konstantinos - 25.12.2012, 09:35
Re: MYSQL String - by Scofield62 - 25.12.2012, 16:56
Re: MYSQL String - by Konstantinos - 25.12.2012, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)