 |
|
โค้ด error คือ
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\modeling\modeling.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\modeling\modeling.php:24) in C:\AppServ\www\modeling\modeling.php on line 104
ส่วนนี่คือโค้ดที่มันฟ้องอะครับ
<?
session_start();
include("function_inc.php");
include("db.php");
include("config.php");
$cid=$_GET['cid'];
if($cid=="")
header("location:customer.php");
if($_SESSION['loginname']=="")
{
header("location:index.php");
}
?>
<?
$cid=$_GET['cid'];
$sql="select cd.*,a.addno,a.addnname,a.addstr,a.addrd,a.adddist,a.addcity,a.addzip,a.addcoun,a.addetc,wp.workno,wp.workname,wp.workstr,wp.workrd,wp.workdist,wp.workcity,wp.workzip,wp.workcoun,wp.worketc from customer_detail as cd, address as a, workplace as wp, where cd.cid=a.cid,and cd.cid=wp.cid,and cd.cid=$cid";
$result=mysql_query($sql,$link);
if(mysql_num_rows($result)==0)
{
$msg=msg("Not Found");
header("refresh:3; url=customer.php");
}
else
{
$arr=mysql_fetch_array($result);
}
?>
รบกวนด้วยครับ ขอบคุณล่วงหน้าครับ[head]Code
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
2010-04-23 14:32:14 |
By :
neuezeil |
View :
902 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |