having a small php error tha deals with the 'foreach'

Posted on 16th Feb 2014 by admin

Last night i was working on a script for a cart and it seemed to working good, until this morning. For some reason i'ts giving me the following error:

Warning: Invalid argument supplied for foreach() in /home/content/b/r/o/bronikov/html/cart/cart.php on line 29

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/b/r/o/bronikov/html/cart/cart.php on line 36

I've looked it over and over again and can't find out whats the issue. Whats weird about it is that it was working last night and i haven't changed a thing from it .

Anyway here is the block of code i'm having isues with. I hope someone here can point out what the issue is

Other forums