Lost data in a query
#1

Sometimes i lost data from a query to insert to values to mymsql db here is my query
pawn Код:
new query[256];
format(query, sizeof(query), "INSERT INTO vehicles (carid,Model,Color1,Color2, Locationx, Locationy,Locationz,Angle,Owner,Name) VALUES (NULL, %d, %d, %d,%f, %f, %f, %f,'%s','%s');",model, color1, color2, X, Y, Z, A, name1,name);
mysql_query(query);
Is there any way to make it never happen? all help apreciated :')
Reply
#2

What do you mean lost data? Use mysql_debug(); and read some of the log. It could be that your query isn't long enough for what you're trying to do.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)