session_start();
if($s_name=='')
{
header("location:login.php");
}
include("connection.php");
$SelType = mysql_query("select * from users where UserName='$s_name'");
$rro = mysql_fetch_array($SelType);
//check user
if($rro[UserType]=='Menufac'){
$Sql=mysql_query("select * from manufacturers where MfcID='$rro[MfcID]'");
$row=mysql_fetch_array($Sql);
}
if($rro[UserType]=='Admin'){
$Sql=mysql_query("select * from customers where CustomerID='$rro[CustomerID]'");
$row=mysql_fetch_array($Sql);
}
if($rro[UserType]=='Register'){
$Sql=mysql_query("select * from customers where CustomerID='$rro[CustomerID]'");
$row=mysql_fetch_array($Sql);
}
?>
:: Welcome to SNT-USA :: >