![]() |
Help needed with viewing shopping cart
Hi guys
I am trying to add a shopping cart to my website, so far I have managed to create a page which will insert items into a table called cart within my database. However I am getting an error message with the page I have created to allow users to view items within their cart. The error I am getting is: Microsoft VBScript compilation error '800a0401' Expected end of statement /n0253071/viewcart.asp, line 14 sql="SELECT * FROM Cart, Books WHERE Cart.BookID = Books.BookID AND Cart.user_id LIKE '" & UserNo & "'"; ---------------------------------------------------------------------------------------------------------------------------------------------------------^ At the moment all I want the cart to display is the user_id from the cart table where it matches that stored in cookie and where BookID is the same in both the books table and cart table. I am unsure if I constructed the join correctly. My code for this page is: :
Any help is much appreciated. Thanks CM |
| All times are GMT -5. The time now is 5:03 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC