Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
shopping list in PHP

Posted by phillipmulvaney (phillipmulvaney), 30 April 2004

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 2004
Not 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 2004
its 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 2004
Hmm ... 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:

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho