Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/shiftype/public_html/addtocart.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at /home/shiftype/public_html/addtocart.php:22) in /home/shiftype/public_html/addtocart.php on line 29