Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\hkshop\guestbook.php on line 224
โค้ดหน้าคำสั่งหน้า guestbook
<?
$sql="
select p1.* , date(postdate) as sdate,
time(postdate) as stime,
from guestbook as p1,
order by id desc";
$result=mysql_query($sql,$link);
//ใช้นับจำนานหน้าทั้งหมด
$pagesize=20;
$totalpage=ceil($total/$pagesize);
if($page=="")
{
$page=1;
}
$start=($page-1)*$pagesize;
$sql.=" limit $start,$pagesize";
$result=mysql_query($sql,$link);
while($arr=mysql_fetch_array($result)) อันนี้คือ line 224 ค่ะ
{
?>
หน้า addguestbook มันขึ้นว่า
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\hkshop\db.php:8) in C:\AppServ\www\hkshop\addguestbook.php on line 21