HELPPP!!! <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

In "ubbt.inc.php" where should I put the scripts that will check if the user exists on ubbt db.


------some scripts from adduser.php-------

// --------------------------------------------
// Check to make sure the user is in ubbt db
$Username_q = addslashes($Username);
$query = "
SELECT U_Username
FROM w3t_Users
WHERE U_Username = '$Username_q'
";
$sth = $dbh -> do_query($query);
list ($check) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

// If sql returned a row then the user is already in ubbt db.
if( $check ) {
// go to main index
} else {
// adduser
}

------scripts from adduser.php-------


ngets <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />