|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hello,
I'm having trouble with the shopping cart; I get the message: "Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site9/web/w_go.php on line 44." Line 44 is: while($row = mysql_fetch_array($result)) { What is going on? I've looked at the manuals for php and MySql online and I don't see were the problem is. Any help would be appreciated greatly. |
|
#2
|
|||
|
|||
|
When I get that error it's normally a number of reasons. Below is what I look for:
The points I've mentioned above are the normal reasons (in my short experience) as to why I would have an error like that. When testing my code I do have a nasty habbit of forgetting to turn my MySQL server on. I then check to see if I have logged into the server using my php code...PHP Code:
Then I check whether I told the server what database I want it to look in... PHP Code:
If your code is still not working then try looking at the other lines of your code which may be the source of your problem. The error message says there is a problem with line 44 but sometimes the error can be in 43 or 45. |
|
#3
|
|||
|
|||
|
check your actually query, usually when this happens it means that there is something wrong with your query
|
|
#4
|
|||
|
|||
|
Thanks for the replies; there was something wrong with my query. It works great now!
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > shopping cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|