User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 402,623 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,152 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 2038 | Replies: 3
Reply
Join Date: Apr 2005
Posts: 1
Reputation: mulesy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mulesy mulesy is offline Offline
Newbie Poster

new to MYSQL need help

  #1  
Apr 30th, 2005
Hi there,

I am relatively new to MYSQL and i have to design a database for stock for a dvd firm, this database has to link up to a website, the website is a DVD firm so the only things that needs to recorded in the database is how much stock is available.

so basically when i click buy from website it takes you to a payment page you can click confirm or decline when you hit confirm it says thank you for the purchase and takes it from the database..But how do i do this???

But i have no idea how to even start this ive been stuck with this for ages now and really have no idea what too do if anyone could help me out id be very grateful, i have webspace so can host anything.

Can anyone help me?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Posts: 12
Reputation: robbyd is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
robbyd robbyd is offline Offline
Newbie Poster

Re: new to MYSQL need help

  #2  
Apr 30th, 2005
sounds like you basically need to update the database everytime theres a purchase.

so if you have a table in mysql with the dvd name and the current quantity
a basic sql query can do this:
[PHP]
$sql = "UPDATE table_name SET quantity = quantity - 1 WHERE dvd = 'name of dvd'";
[/PHP]
Reply With Quote  
Join Date: Mar 2007
Location: India
Posts: 28
Reputation: bhuvan83 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
bhuvan83's Avatar
bhuvan83 bhuvan83 is offline Offline
Light Poster

Re: new to MYSQL need help

  #3  
Mar 16th, 2007
for that u need to do coding on ur webpage so that it connects to the database
Bhuvan Aggarwal
There is no word impossible.
its i m possible
Reply With Quote  
Join Date: Mar 2007
Posts: 32
Reputation: sibotho is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
sibotho's Avatar
sibotho sibotho is offline Offline
Light Poster

Re: new to MYSQL need help

  #4  
Mar 29th, 2007
Hello all

I am new on this site and i don't know where to click in order to be able to post. Sorry newbie for posting my message inside yours.
Can somebody tell me, Is visual Studio 2003 compatible with mysql? I am doing my final year project using VS 2003, I would also want to know How do I do the connection between the 2. Please help and Thank you in Advance.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 1:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC