Re: Unable to insert data in MYSQL using C.
Posted by: Gelu Gogancea
Date: July 27, 2010 03:04PM

No.I suggest to use mysql_errno() for mysql_query() or mysql_real_query() not for mysql_real_connect().

if(mysql_query(conn,your_statement)) {
printf("Error %u : %s /n",mysql_errno(conn), mysql_error(conn));
exit(1);
}
Regards,

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Unable to insert data in MYSQL using C.
511
July 27, 2010 03:04PM


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.