mysql select
#include "includes.h"
MYSQL *con;
con=mysql_real_connect(con, server,user, password, database, 0, NULL, 0);
//mysql check:
int act;
int reb;
reb=mysql_query(con,"SELECT * FROM cq_rebirth");
act=mysql_query(con,"SELECT * FROM cq_action");
if(act !=0 || reb !=0){
cout << mysql_error(con);
return 1;
}
Error: Commands out of sync; you can't run this command now
i wanna select like more than 10 tables lol so how can i do it
Subject
Views
Written By
Posted
mysql select
2140
December 30, 2010 10:44AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.