<?
$ProductID=3;
$select=mysql_query("SELECT SUM(Qty) as Total WHERE ProductID='".$ProductID."'") or die (mysql_error());
$result=mysql_fetch_array($select);
$result['Total'];
?>
ประวัติการแก้ไข 2013-03-08 10:24:15
Date :
2013-03-08 10:23:53
By :
Ex-[S]i[L]e[N]t
No. 2
Guest
select sum(Qty) as sqty from tb_test where ProductID = '3'
ลองดูครับ