ok... im kinda new to this also but here is what im getting...
its going though the first if loop:
if (($num !=0) && ($admin ==1))
{
header("Location: admin.php");
}
and coming up as true so it spits out the header but then it goes though the second if loop...
if ( !$auth)
{
header ('www-authenticate: base realm = "Private" ');
header ('http/1.0 401 Unathorized');
echo 'Authorization Required.';
exit;
}
else
{
header("Location: member.php");
}
and the first step if false, so it skips that, but then it no matter what goes though the second step as true fo it spits out another header, overwriting the first.
try this:
if ( !$auth)
{
header ('www-authenticate: base realm = "Private" ');
header ('http/1.0 401 Unathorized');
echo 'Authorization Required.';
exit;
}
if (($num !=0) && ($admin ==1))
{
header("Location: admin.php");
} else {
header("Location: member.php");
}
again... im new so dont quote me. just though i would give you my thoughts.
-Neg9