Dan thanks for your help but I seem to be missing somthing.
Here is my code:
<?
$cnn = mysql_connect('','','');
$sql = "SELECT SUM(product_price) AS total FROM cart WHERE uid=$uid";
$qry = mysql_query($sql,$cnn);
$row = mysql_fetch_array($qry);
print $row["total"];
?>
I am getting this error:
Warning: Supplied argument is not a valid MySQL result resource in C:\apache\htdocs\shoptest\total.php on line 6
Line 6 being:
$row = mysql_fetch_array($qry);
Any thoughts. I and under the gun. 🙁
Bill