Buying from a store...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Random
Forum Commoner
Posts: 30
Joined: Wed Mar 12, 2003 5:38 pm

Buying from a store...

Post by Random »

How would I call my column for Dynobucks and have it subtracted after someone clicks on an item to buy? I also want an alert to come up saying "Are you sure you would like to buy <item> for <price>?" then it will have a Yes / No or a Okay / Cancel. After Okay was clicked it would subtract the Dynobucks from the Database, and redirect back to the shop. Thanks in advance.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

How far have you got coding this?

Mac
Random
Forum Commoner
Posts: 30
Joined: Wed Mar 12, 2003 5:38 pm

Post by Random »

I havent gotten anywhere... :oops: i have no idea where to start.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

If you haven't already, get a copy of the php manual from php.net (the one with user comments is best) and the mysql manual mysql.com if you plan to use mysql.

Try some form script tutorials to get started: adding and retrieving info from a database is pretty much the essence of all php web sites.

Is this just a scripting project or is it going to be a live internet shop?
Post Reply