Help Pls : Lost connection to MySQL server during query
#4

Hmm. You must do the same thing you've done in parts. For understanding.

You have to cut down that enormous string in pieces. For example.

format(query, sizeof(query), "UPDATE table SET X = %d Y = %d Z = %d");
mysql_query(query);
format(query, sizeof(query), "UPDATE table SET A = %d B = %d C = %d");
mysql_query(query);
format(query, sizeof(query), "UPDATE table SET J = %d K = %d L = %d");
mysql_query(query);

With your variable string and your variables inside. You understood?
Reply


Messages In This Thread
Help Pls : Lost connection to MySQL server during query - by bigtigerbeee - 12.01.2014, 12:44
Respuesta: Help Pls : Lost connection to MySQL server during query - by Stront - 12.01.2014, 12:46
Re: Help Pls : Lost connection to MySQL server during query - by bigtigerbeee - 12.01.2014, 12:54
Respuesta: Help Pls : Lost connection to MySQL server during query - by Stront - 12.01.2014, 13:03
Re: Help Pls : Lost connection to MySQL server during query - by bigtigerbeee - 12.01.2014, 13:06

Forum Jump:


Users browsing this thread: 2 Guest(s)