Hi
I am trying to program for a login screen, I have succeeded somewhat but I am getting a blank screen. If you login with a user name and if it is wrong then it will directyou to a different page.
Code:
include("connectdb.php");
$rRes = mysql_query(
sprintf(
"SELECT * FROM register WHERE email = '%s' LIMIT 1",
mysql_real_escape_string($_POST['myemail'])
)
);
if(1 !== mysql_num_rows($rRes))
{
header('Location: wrong.php');
exit;
}
$aRec = mysql_fetch_assoc($rRes);
printf(
'
<strong>Type:</strong>%s<br />
<strong>State:</strong>%s<br />
<strong>Area:</strong>%s<br />
<strong>Description:</strong>%s<br />
<strong>ID:</strong>%s<br />
',
$aRec['type'],
$aRec['state'],
$aRec['area'],
$aRec['desc'],
$aRec['ID']
);
Any advice or suggestion on this. Thanks in advance.
Bookmarks