Ok. I thought I had this straight.
I thought that the following checked to see if the query contains any errors. Not if it returns any results. This just basically need to see if an item already exists in the cart. I need it to just continue along regardless if there is a match. What I have returns FALSE when there isn't a match.
What I thought I knew is that if(!mysql_query) checks if there is an error in the query (bad code, wrong variable, etc.). And, if(!result) or mysql_num_rows will check if there are actually any results or data.
$cartSelect = "SELECT cart_quantity
FROM cart
WHERE cart_productid = '$id' AND cart_session = '$cart'";
if(!mysql_query($cartSelect)) {
return FALSE;
}
Go easy on me guys.