header('location:home.php');
$cok = $_COOKIE['loged'];
if ($cok!="")
{
//header('location:home.php');
}
?>
Please Login
getMessage()); } // make sure the connection was successful
$sth=$dbh->query("SELECT * FROM ra"); // get the records again
if (DB::isError($sth)) { die ($sth->getMessage());}
$found=0;
$name=$_COOKIE['username'];
while ($sth->fetchInto($row)) // go through the records
{
$uname=$row[0];
$uname=ltrim($uname);
$uname=rtrim($uname);
if (strcmp($uname,$name) == 0)
{
$ch=$row[6];
}
}
$bk=explode ("|", $ch);
if ($bk[0]!="")
{
if ($bk[0][0]=="#")
{
print "";
}
else
print "";
}
else
print "";
}
else
print "";
?>
Welcome to the RA Website!!!