Stefin, your program is missing 1 line.
PHP Code:
$userInfo = mysqli_fetch_assoc($result);
This need to be added after code
PHP Code:
if ($result->num_rows == 0) {
die("User with email address <b>$email</b> not found");
}
What that line do is fetch (means read, get, etc..) user information from MySQL query result.
@annie made that mistake (but actual code worked, i verified), @sherly copied it @stefin reported the mistake :D
@sherly
http://php.flashwebhost.com/sherly/lost_password.html
This is wrong code. You put code for index.html in lost_password.html
Please reupload the code, try to understand, if you don't understand ask here, that help everyone.
Now stefin asked the question, and we found a problem with posted codes.
Bookmarks