|
|
|
ช่วยดูโค๊ด PHP ไห้หน่อยนะค่ะ error Warning: Illegal offset type แบบนี้ค่ะ |
|
|
|
|
|
|
|
$sess_payment[$chk]
เป็น
$sess_payment[chk]
|
|
|
|
|
Date :
2011-01-23 18:27:49 |
By :
iieszz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณ คุณ iieszz นะค่ะ
Code (PHP)
<?
session_start();
session_register("sess_payment");
include "./include/connect.php";
?>
<?
$chk=$_POST[chk];
for($i=0;$i<count($chk);$i++){
if($chk!=""){
$sql="SELECT * FROM sale WHERE sale.sale_id='$chk[$i]'";
$result=mysql_db_query($db,$sql);
while($read=mysql_fetch_array($result)){
echo $sess_payment[chk]=array("total_credit"=>$read['sale_total_credit'],"duedate"=>$read['sale_duedate']); // echo ดูแล้วมันว่า array ค่ะ
}
}
}
echo"<meta http-equiv='refresh' content='0; url=payment_cus1.php'>";
?>
ลองecho $sess_payment[chk]=array("total_credit"=>$read['sale_total_credit'],"duedate"=>$read['sale_duedate']); // echo ดูแล้วมันว่า array ค่ะ
|
|
|
|
|
Date :
2011-01-24 10:11:12 |
By :
dekcis |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|