All pastes #282100 Raw Edit

DB Register check

public php v1 · immutable
#282100 ·published 2006-12-17 09:02 UTC
rendered paste body
function dbCheck(){	mySQLConnect();	$userResult = mysql_query("SELECT * FROM softmod_users WHERE userName = '$un'");	$emailResult = mysql_query("SELECT * FROM softmod_users WHERE email= '$email'");	if(mysql_num_rows($userResult) == 0){		$userCheck = true;		}	else{echo "The email ".$un." is already in use."; die();	}		if(mysql_num_rows($emailresult) == 0){		$emailCheck = true;		}	else {echo "The email ".$email." is already in use."; die();		}	if($userCheck AND $emailCheck == true){		$final = true;		global $final;	}