12.01.2014, 13:03
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?
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?