Forum Moderators: coopster
but
$firstName=$_POST["first_name"];
$query=mysql_query(SELECT * FROM table1 WHERE first_name="$firstName");
$result=mysql_num_rows($query);
that would work and then you can do
if ($result < 1) {
would mean that there were no rows returned and you could carry on, though you might also want to do the opposite
if ($result > 0) {
this way you can error out right away if there is a row selected and return to the user or whatever you need to do