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. 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 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
Archived
This topic is now archived and is closed to further replies.