MySQL Error Check
#3

Quote:
Originally Posted by Astaroth
Hi, I'm using the G-sTyLeZzZ MySQL Plugin and i'm getting this issue:

If I try to check the success of a query operation, I get an invalid error number.

Look, in my script I have this:

Код:
mysql_query(query);
	printf("ERROR: %d",mysql_errno());
The query finish OK:

Код:
[00:07:54] CMySQLHandler::Query(SELECT id FROM usuarios WHERE username='Astaroth') - Successfully executed.

[00:07:54] >> mysql_errno( Connection handle: 1 )
But in the server console I get:

Код:
ERROR: 11862392
Instead of "ZERO" value (for suceeded querys)

What happens?

P.S: Sorry for my poor english.

Thanks
there is no way to print error like with PHP, because there is no function mysql_error()
Reply


Messages In This Thread
MySQL Error Check - by Astaroth - 04.06.2010, 03:49
Re: MySQL Error Check - by Astaroth - 08.06.2010, 15:33
Re: MySQL Error Check - by Aleksandar_Zivanovci - 08.06.2010, 16:10
Re: MySQL Error Check - by Astaroth - 08.06.2010, 16:22
Re: MySQL Error Check - by Aleksandar_Zivanovci - 08.06.2010, 16:39
Re: MySQL Error Check - by Astaroth - 08.06.2010, 16:45
Re: MySQL Error Check - by Aleksandar_Zivanovci - 08.06.2010, 16:48
Re: MySQL Error Check - by Aleksandar_Zivanovci - 08.06.2010, 16:48
Re: MySQL Error Check - by Astaroth - 08.06.2010, 16:49
Re: MySQL Error Check - by Aleksandar_Zivanovci - 08.06.2010, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)