James
Member
Registered: 1st Jun 02
Location: Surrey
User status: Offline
|
Im trying to make an online shopping basket in PHP and MySQL. The user logs in using their email address and a password and that is when the session starts.
I have no idea how to code it and ive been looking for decent examples over the web without much luck.
What extra tables would i need in the database?
Can anyone help?
|
lozzd
Member
Registered: 10th Aug 04
Location: Winchester,Hants
User status: Offline
|
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html
|
Joff
Member
Registered: 17th Oct 00
Location: Cambridgeshire
User status: Offline
|
Buy a book and work through it.
|
Chump
Member
Registered: 1st Feb 04
Location: Sharnbrook
User status: Offline
|
to be honest mate your asking a bit much for someone to just write it all down for you.....there's a fair bit involved in what you've mentioned. If you then want to chuck a shopping cart facility into it aswell then you're talking quite a few mans hours to sit and do it all.
As Joff said - buy a PHP and MySQL book and teach yourself. Thats what i did. Took me about 2 weeks to grasp the majority of it and now I can do all you've mentioned above without any problems...
[Edited on 09-03-2005 by Chump]
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
aye, get a book, read some online tutorials etc etc and your sorted
although i would go get a free shopping cart like oEcommerce or something and just hack it to shite for what you want
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
There's all sorts of security things to be aware of as well, probably best using an out-of-the-box one as it will be more mature in this respect.
Email address for username I don't like - what happens when someone loses use of an address?
|
Andrew
Member
Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
|
Think this one is books only
|
lewie
Member
Registered: 21st Feb 05
Location: Home: Orkney Uni: Edinburgh
User status: Offline
|
use oscommerce, here
[Edited on 10-03-2005 by lewie]
|
Joff
Member
Registered: 17th Oct 00
Location: Cambridgeshire
User status: Offline
|
quote: Originally posted by Ian
Email address for username I don't like - what happens when someone loses use of an address?
Serves them right.
Nothing worse than signing up to a service or a forum with the intention to troll, only to forget your username.
When services become over-subscribed, it can take a few attempts to get the username you're after. Look how many people have a hotmail account with "2000, 80, 81, 82, etc" in them.
|
Laney
Member
Registered: 6th May 03
Location: Leeds
User status: Offline
|
quote: Originally posted by Peugeot Nut
Think this one is books only
Not really.
If you think about how it works its not THAT hard.
Use an array in the session to hold the amount/product ID and go from there.
If I can do it, anyone can
[Edited on 10-03-2005 by Laney]
|
Joff
Member
Registered: 17th Oct 00
Location: Cambridgeshire
User status: Offline
|
quote: Originally posted by Laney
quote: Originally posted by Peugeot Nut
Think this one is books only
Not really.
If you think about how it works its not THAT hard.
Use an array in the session to hold the amount/product ID and go from there.
If I can do it, anyone can
[Edited on 10-03-2005 by Laney]
But then he's got to write code to recurse through the array when item quantities are updated or when whole "rows" are deleted.
Does PHP have an equivalent to the Dictionary object in ASP/VBScript?
|