| | |
Urgent help needed! Transaction process after shopping cart
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 9
Reputation:
Solved Threads: 0
Hey all,
My situation is this..
A user has already selected the items into the shopping cart.
Now it is on to the transaction table. So all the items are added to the transaction table for the user to purchase the items.
When it goes to the transaction, the shopping cart has to be cleared so that when another user enters the website, the shopping cart will be empty for that user.
1. How can the items in the shopping cart be inserted into the transaction table?
2. How can i clear the shopping cart for the next user?
How can i achieve this using dreamweaver in PHP?
Hopefully someone can provide a tutorial for this because im a beginner in PHP.
Thanks!
My situation is this..
A user has already selected the items into the shopping cart.
Now it is on to the transaction table. So all the items are added to the transaction table for the user to purchase the items.
When it goes to the transaction, the shopping cart has to be cleared so that when another user enters the website, the shopping cart will be empty for that user.
1. How can the items in the shopping cart be inserted into the transaction table?
2. How can i clear the shopping cart for the next user?
How can i achieve this using dreamweaver in PHP?
Hopefully someone can provide a tutorial for this because im a beginner in PHP.
Thanks!
•
•
•
•
When it goes to the transaction, the shopping cart has to be cleared so that when another user enters the website, the shopping cart will be empty for that user.
Have a look at sessions, in your tables, add a column for 'session_id' or similar and use the session ID for this, this would mean that multiple users can have items in the cart at the same time and also would mean that once they click the checkout or pay button that you can remove only their items from the cart.
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
![]() |
Other Threads in the PHP Forum
- Previous Thread: problem uploading photo in webserver
- Next Thread: Duplicate entry '' for key 2
| Thread Tools | Search this Thread |
apache api array basic beginner binary body broken cache cakephp class cms code computing confirm cron curl customizableitems database date date/time delete display dynamic email error file filter folder form forms forum function functions gc_maxlifetime google headmethod howtowriteathesis href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php phpmysql play query question random recourse regex root script search select seo server sessions snippet source space sql static system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube





