Does anyone know how I would add a header to this snippet, so when the php page is called, it goes to an htm page with a form, then the user enters thier email and submits, then the connect sequence? Thanks muchas.
Hayley Watson wrote:
More efficient is
$query = "SELECT COUNT(*) AS c FROM table WHERE email='".$email."'";
$result = mysql_query($query);
if(mysql_result($result,0,'c') > 0) {
//do what you want to do if match
} else {
//do what you want to do if not match
}
Otherwise you're pulling all the data of all the matches out of the database just to see how many matches there were, when you could just ask the database for exactly that.