List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:May 28 2004 6:38pm
Subject:Re: mysql_qury returns -1!
View as plain text  
In the last episode (May 28), Bono, Saroj AA R62 said:
> Non zero indicates an error but the possible values are (from
> errmsg.h) Return Values Zero if the query was successful. Non-zero if
> an error occurred.
> Errors
> Commands were executed in an improper order. 
> The MySQL server has gone away. 
> The connection to the server was lost during the query. 
> An unknown error occurred. 
> which have values in th erange 2000 to 2027. So its not teeling me
> what made the sql_query fail. The database of course doesnt get
> created, but I cant even see why it failed.........since my return
> val from mysql_query is -1.

Call mysql_error() or mysql_errno().

	Dan Nelson
mysql_qury returns -1!Saroj AA R62 Bono28 May
  • Re: mysql_qury returns -1!Dan Nelson28 May