shopping list in PHP
Posted by phillipmulvaney (phillipmulvaney), 30 April 2004hi,
I only started PHP a few days ago and I am doing a simple shopping list in PHP that allows a customer to view a product and then add it to their list.
They can then add multiple items, view the list and delete items from the list.
The list will then be viewed on the screen and that is it.
It is not a shopping basket as the items are not for purchasing they are just to be viewed in a list format.
If anyone knows where I can get the code for this kind of application or has any suggestions it would be a great help.
Posted by admin (Graham Ellis), 30 April 2004Not inherently difficult, but if you potentially have several users at the same time, and/or if you want people to have the same list available when they come back, you're going to get involved in sessions.
How much have you programmed before? Have you written - say - any web scripts in Perl that use sessions? If "Yes", then I'll be able to suggest a couple of books, if "no" and it's a part of your job, you would probably do well to persuade your employers to send you on a course. I have to admit to a vested interest here - I'm presenting a course from 18th to 21st May.
Posted by phillipmulvaney (phillipmulvaney), 1 May 2004its only has one person at a time using the list and they wont be using the list again.
basically they add items to a list then they will view the entire list and print it off. Thats it.
i have no real knowledge of php and have basic java skills.
any help would be great.
Posted by admin (Graham Ellis), 2 May 2004Hmm ... I've had a look around and all my examples deal with multiple users, so are probably a bit more complex that you need. It's very dangerous to write single user scripts as all it takes is a second user to arrive at your site and the shopping lists would get mixed up ... thus all my training are written to work for several people at the same time.
Having written that caution, here are some links to our multiuser samples that may help you get started:
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho