
May 5th, 2000, 06:55 AM
|
|
Apprentice Deity
|
|
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237

Time spent in forums: 4 m 8 sec
Reputation Power: 17
|
|
|
$query="select * from members where username='$lusername' AND email='$lemail'";
$result=mysql_query($query);
if (mysql_num_rows($result))
{
redirect();
}
else
{
print "(try again)";
}
From your code it looks like you are trying to verify that the record where username = $lusername and email=$lemail are the same. The above code will do this. If no rows are returned, then there was no match.
|