ricmetal Posted April 9, 2009 Share Posted April 9, 2009 $grabpm = mysql_query("SELECT * FROM pmsystem WHERE to = '$to' AND id = '$id'"); when i do if ($grabpm) does this also mean that it is tested for validation of the query like for example if there is no existing $id in the db, does the IF turn out false? Quote Link to comment https://forums.phpfreaks.com/topic/153249-does-a-successfull-query-mean-a-valid-one/ Share on other sites More sharing options...
Maq Posted April 9, 2009 Share Posted April 9, 2009 Test it out. Create an invalid query and see what happens... Quote Link to comment https://forums.phpfreaks.com/topic/153249-does-a-successfull-query-mean-a-valid-one/#findComment-805068 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.