Re: Shopping Cart
| From: | Shawn McKenzie | Date: | Sat, 16 May 2009 22:49:58 +0000 |
| Subject: | Re: Shopping Cart | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292687@lists.php.net to get a copy of this message | ||
Darrel St Croix wrote:
> Thanks for that.
>
> I have changed the code as you suggested, but there is an error on the while
> loop.
>
> *Warning*: mysql_fetch_array(): supplied argument is not a valid MySQL
> result resource in *C:\wamp\www\draft\basket.php* on line *46*
>
That's because $result is not valid because the query failed. You'd see
this if you turned on error reporting. BY is not valid in your query,
maybe ORDER BY?
--
Thanks!
-Shawn
http://www.spidean.com