WilliamMute
Programmer
- Jan 4, 2006
- 117
Hi,
Dont know if you can help, but I am quite stuck and have been for quite a while now, for the life of me, I just cant understand why am getting the following error
on the following script:
Any help would be appreciated please
Thank you ever so much.
Dont know if you can help, but I am quite stuck and have been for quite a while now, for the life of me, I just cant understand why am getting the following error
Code:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/fhlinux205/s/springrise.net/user/htdocs/cart_view.php on line 55
on the following script:
Code:
mysql_select_db($database_Connection, $Connection);
$query = "SELECT SUM(".$this->products.".product_price*" .
$this->springrisecart.quantity .") as subtotal,
SUM(subtotal) as total
FROM ".$this->springrisecart."," .
$this->products."
WHERE session='".$this->cart_id."' AND
".$this->springrisecart.".id = " .
$this->springrisecart.".product_id
GROUP BY ".$this->springrisecart.".product_id";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
return $row['total'];
$Final = $result;
The error seems to be coming from the line:
$row = mysql_fetch_row($result);
return $row['total'];
Any help would be appreciated please
Thank you ever so much.