Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 3rd, 2003, 07:09 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Pr0t0c0L Send a message via Yahoo to Pr0t0c0L
Default Professional PHP Programming

I need help with the Shopping cart feature. When adding items to my shopping cart, I only recieve a list of one(1) item ...being the most recently addes in the display page. It doesn't matter how many items have been added from the database...only the last one shows up.

Please, can someone help me out here.

Darryl From Melbourne
 
Old June 4th, 2003, 12:05 PM
Authorized User
 
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It all depends on how you are storing the items in the shopping cart. Is it session variables, cookies, php sessions, what? It sounds like you are overwriting the contents of the cart in each instance rather than adding to it.

Buzz me back with what you are using to do this and I will see if I can help you more.



----------
~cmiller
 
Old June 4th, 2003, 12:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Do you use some existing shopping cart?

...but the Soon is eclipsed by the Moon
 
Old June 7th, 2003, 01:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default

yes cmiller is right. you need to create a proper table and then just display stuff..

check www.ebookstore.coolfreepages.com/about.php

see table cart :D

the genuine genius





Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional PHP Programming Vladqui Wrox Book Feedback 8 August 1st, 2013 02:11 AM
Downloading code of Professional PHP Programming aizinami BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 November 25th, 2008 08:47 PM
Downloading code-Professional php programming aizinami Beginning PHP 0 November 25th, 2008 04:26 AM
professional java programming ashishroyk All Other Wrox Books 0 October 8th, 2004 03:27 AM
Professional Linux Programming sonicfei Forum and Wrox.com Feedback 1 May 28th, 2004 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.