PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I found this method in the php.net manual and it wont go into the if statement if there is an Invalid Query. Regardless of what is entered, it skips it.
$result = mysql_query("SELECT * FROM links WHERE nick = '$name_entered' ");
if (!$result) {
die ("Error, No match in db. " . mysql_error());
} // end if