All pastes #341926 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-05 23:25 UTC
rendered paste body
<<< unrelated lines above >>>

/** We are now connected via the access variable **/

/** Make that query! **/

$query   = "SELECT last_visit FROM $table WHERE email='$email' LIMIT 1";
$result  = mysql_query("$query");

/** Did we find it? **/

if(mysql_numrows($result) == 0){
	echo "We did not find $email in our database. Please go back and resubmit the form.";
	exit(0);
} // end if

/** Timestamp the user's account **/

$time = time();
mysql_query("UPDATE $table SET last_visit=$time WHERE email='$email' LIMIT 1") or die(mysql_error()); 


<<< unrelated lines below >>>