Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 3rd, 2003, 07:09 PM
Registered User
 
Join Date: Jun 2003
Location: Melbourne, Victoria, Australia.
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
Reply With Quote
  #2 (permalink)  
Old June 4th, 2003, 12:05 PM
Authorized User
 
Join Date: Jun 2003
Location: San Jose, CA, USA.
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
Reply With Quote
  #3 (permalink)  
Old June 4th, 2003, 12:20 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Wien, Wien, Austria.
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
Reply With Quote
  #4 (permalink)  
Old June 7th, 2003, 01:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.