i wrote a query... it must return false instead its returning false..i cant find why
public static function find_cart_id($cid){
$query="SELECT customer_id FROM tblshopping_cart WHERE customer_id='$cid'";
if(mysql_query($query))
{
return true;
}
else
{
return false;
}
}
even if i use some text instead of $cid
it still returns true :( . this function worked before i changed my code though... Please can anyone help me?