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


Posted on 16th Feb 2014 07:03 pm 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

No comments posted yet

Your Answer:

Login to answer
67 Like 9 Dislike
Previous forums Next forums
Other forums

Detail Expenses Report by Cost Center
I would like to obtain a report out of SAP that shows a list of expenses by cost center that shows t

mySQL and PHP search
Hello,
I am trying to code a project and ran into a brick wall with one of my pages. I am pretty

C problem struct and string
Hi guys,

This is my first post and I'm hoping the experts here can help me solve my problem.<

Get last modified date of web page
Hai All,

In php how can i get last modified date of a give web page . I have tried to g

TimeStamp Column Problem...
I'm mad at my self and thinking I'm a little retarded. It just be some one mistake I'm missing here.

Problem with coding MySQL query
I'm having heaps of trouble getting one of my PHP/MySQL queries to work for some reason (and the fun

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

Add_Months not Easy to Understand
Oracle is number 1, very fast and very easy. But....
OK, I think but have a problem, only 1 pro

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash