$ count + = $cart[$i][qunatity]; i have error in anyone can solve it please

Warning: mysql_query() expects parameter 1 to be string, resource
given in C:/khubaib/htdocs/shop_cart/cart.php on line 6

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL
result resource in C:/khubaib/htdocs/shop_cart/cart.php on line 7