jdadwilson Posted May 29, 2007 Share Posted May 29, 2007 I have a simple query as follows: DELETE FROM users WHERE username = 'Smith'; What is the returned result if 'Smith' is not found in the table? I would like to inform the user of the error. TIA for your assistance. Quote Link to comment https://forums.phpfreaks.com/topic/53338-return-result-from-invalid-query/ Share on other sites More sharing options...
AndyB Posted May 29, 2007 Share Posted May 29, 2007 http://ca.php.net/manual/en/function.mysql-affected-rows.php Quote Link to comment https://forums.phpfreaks.com/topic/53338-return-result-from-invalid-query/#findComment-263607 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.