I am trying to display the contents of a shopping cart using ShowCart() (see below)
The
echo $result;
gives Resource id #4 as the output.
What does Resource id #4 mean?
Any ideas why the cart is not displaying?
Thanks.
function ShowCart()
{
// Gets each item from the cart table and display them in
// a tabulated format, as well as a final total for the cart
global $dbServer, $dbUser, $dbPass, $dbName;
// Get a connection to the database
$cxn = @ConnectToDb($dbServer, $dbUser, $dbPass, $dbName) or die(mysql_error());
$totalCost = 0;
$result = mysql_query("select * from cart inner join items on cart.ITEMID = items.ITEMID where cart.cookieId = '" . GetCartId() . "' order by items.ITEMNAME asc") or die(mysql_error());
//look at result
echo $result;