Here is the project link: http://d-h-enterprise.com/zshop/
user:admin
pass:123456
After login I am getting errors those below here
Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) in /home/dhenter/public_html/zshop/login_c.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) in /home/dhenter/public_html/zshop/login_c.php on line 27
here is login_c.php
<?php @$name=$_POST['name'];
@$pass=$_POST['pass'];
if(!$name || !$pass )
{
print("<script>window.location='index.php?script=signin-form'</script>");
exit;
}
else
{
$query = mysql_query("select * from user where name='$name' and pass='$pass'");
$collect =mysql_fetch_array($query);
if(mysql_num_rows($query) > 0)
{
$C_USERNAME = $collect['name'];
//setcookie("$c_username", "$c_usertype", time()+3600);
$_SESSION['name']=$C_USERNAME;
session_register("C_USERNAME");
$_SESSION['userType']=$collect['UserType'];
header("Location: ".$_SERVER['HTTP_REFERER']);
header("Location:index.php?script=adminMenu");
}
else
{
print("<script>window.location='index.php?script=signin-form&ucheck=1&user={$name}'</script>");
session_destroy();
exit;
}
}
?>