while loop
Posted: Mon Jul 30, 2007 8:47 pm
Can anyone tell me what is supposed to terminate this while loop.
If I am right, as it stands it just keep running.
What I think is supposed to happen is that when the the length of the array is reached the while terminates.
As it stands I never reach my echo statement:
insight appreciated
thank you
Kevin
If I am right, as it stands it just keep running.
Code: Select all
while($info = mysql_fetch_array( $check )) {
$fName = $info['fName'];
}As it stands I never reach my echo statement:
Code: Select all
if (empty($check2)) {
$_SESSION['SES_loginErr'] = "Your email address was not found in the database, please try again!";
header('Location: forgotPass.php');
exit;
} else {
while($info = mysql_fetch_array( $check )) {
$fName = $info['fName'];
}
echo "hello";
exit;thank you
Kevin