$sql = mysql_query("SELECT * FROM orders o inner join product p on o.product_id = p.product_id inner join member m on o.mem_id=m.mem_id WHERE m.mem_id ='".$_SESSION['mem_id']."");
$sql = mysql_query("SELECT * FROM orders o inner join product p on o.Product_id = p.Product_id inner join member m on o.mem_id=m.mem_id WHERE m.mem_id ='".$_SESSION['mem_id']."");
ตอนนี้ออกหมดนะครับแต่ว่ามันออกหมดเลยครับไม่ได้ออกเฉพาะ User นี้อ่าครับ
Date :
2012-03-28 15:50:05
By :
l3igl3ird
No. 4
Guest
Code (PHP)
$strSQL = "SELECT * FROM member m,order_detail od,orders o,product p WHERE m.mem_id = '".$_SESSION['mem_id']."'
and m.mem_id=o.mem_id and o.order_id=od.order_id and od.product_id=p.product_id";