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!
// check to see if this person is in the DB
$query = "SELECT * FROM table WHERE first_name='".pnVarPrepForStore($first_name)."', last_name='".pnVarPrepForStore($last_name)."', reg_year='".pnVarPrepForStore($reg_year)."'";
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
if($numrows == 0)
{
// do something
}