MYSQL Problem
#1

PHP код:
[17:30:05] [MySQLError (0): Failed to exeute queryCommands out of syncyou can't run this command now.
[17:30:05] [MySQL] Error (0): Failed to exeute query. Commands out of sync; you can'
t run this command now
After I do this:
PHP код:
            format(query,sizeof(query),"SELECT (`balance`) FROM `baccounts` WHERE `bid` = '%i'",account);
            
mysql_query(query); 
This is for the first error, and this is for the second:
PHP код:
             format(query,sizeof(query),"UPDATE `baccounts` SET `balance` = '%i' WHERE `bid` = '%i'",x,account);
             
mysql_query(query); 
Reply
#2

http://dev.mysql.com/doc/refman/5.0/...t-of-sync.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)