MySqHell

admin

Administrator
Staff member
Im a newbie as im sure your aware by the Subjectline. Im trying to check form fields Entered against MYSQL and im having hell.
The Problem is that it does the THEN statement MANY TIMES.. How can i have it just return the query Once and then Move on? LOL

<?
$Link = mysql_connect ($Host, $DBUser, $DBPass);
$result = mysql_db_query ($DBName, "select * from my_Table");
while ($row = mysql_fetch_object ($result)) {
$Username=$row->USERID;

If (${user} == $username){
echo "this is a test";
}

}
mysql_free_result ($result);
?>
 
Back
Top