Jump to content


Photo

Number Value and Storing Information In A Database


  • Please log in to reply
1 reply to this topic

#1 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 15 September 2006 - 02:57 AM

Ok, I've got an shopping cart system set up on my site right now. Right now I have it posting all the information in and email and sending it to a defined address. I would like to interm post the information to a database. Can someone please tell me how I go about this. I'm semi-new to php and don't have a clue. I would also like to assign a order number to that order so I can track them easier. How do I make php start assigning numbers to all successful orders, in a set order like 1,2,3,4,5 -> 1093, 1094. Like that so they all stay in order. Thanks for the help.

Brandon

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 15 September 2006 - 03:17 AM

That's a big project (for someone new to php).. I suggest you start out with some php tutorials (if you haven't already).

For assigning the order numbers, you can get your database to do this.  If it's MySQL, use auto_increment  http://dev.mysql.com...-increment.html




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users