hi
i was writing a separate function for connecting to mysql database in C.what i did
is
MYSQL *connect_mysql()
{
MYSQL *conn,mysql;
................
mysql_init(&mysql);
conn=mysql_real_connect(&mysql,..........);
.................................
.................................
return(conn);
}
in main fucntion i do
int main()
{
MYSQL *connexon;
connexon=connect_mysql();
.......................
mysql_query(connexon,......................);
}
at mysql_query line it gives problem i have used mysql_error(connexon) which returns
"Commands out of sync; You can't run this command now"
pls help
---
Manish Kumar Arya
--------------------------------------------
While universe
{
Object emerges from zero, tends to infinity and finally end in zero.
}
--------------------------------------------
Go Get It!
Send FREE Valentine eCards with Lycos Greetings
http://greetings.lycos.com
================================================
To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header
Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org
=================================================