<?
@session_start();
?>
<html>
<head>
<title>ตรวจสอบการ Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body bgcolor="#48AC9F">
<?
require_once('../include/connect.php');
$sql="select * from admin where useradmin='$useradminnew' and password='$password'" ;
$dbq=mysql_query($sql) or die ("ไม่สามารถเลือกฐานข้อมูลได้");
if (mysql_num_rows($dbq)>0)
{
$aname=$useradminnew;
session_register("$aname");
header("Location:../admin/home.php");
}
else
header("Location:../admin/default.php?err=no");
?>
</body>
</html>
ขึ้น Error : Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Dog center\admin\checkloginad.php:1) in C:\AppServ\www\Dog center\admin\checkloginad.php on line 22