Hi All,
Can anyone advise me how to trap errors when carrying out database
inserts/updates/deletes (Queries that do not return any rows).
Here is my code:
$query = "some sql statement;";
mysql_query($query);
At present, this is executing (Or appears to be!) but the database is
uneffected. I guess I need some sort of return value from mySQL so I can
tell my users that the update/whatever happened OK.
Thanks!
Simon.
--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later :
http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 10157 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!