Jump to content


Photo

Posting Form Data To Database and Invoice System


  • Please log in to reply
3 replies to this topic

#1 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 29 September 2006 - 05:01 AM

I have a shopping cart system setup and I currently have it forwarding each order in an e-mail to myself. I would like to instead post the information to my database and then somehow create a template page (to look like an invoice) and be able to post all the information from the database for each order in this template. I'm a semi php beginner and could someone please point me in a good direction to start. Like posting information to a database instead of a form? Thanks in advance.

Brandon

#2 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 29 September 2006 - 10:04 AM

You need to see if you have mysql database available on your server. This is the best route first.

#3 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 29 September 2006 - 11:33 AM

As you have a cart setup already, you're implying that people can order multiple products as once, which means that you must be storing the data somehow already, probably in session variables.  Is your cart coded in PHP?

This may not actually be too difficult.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#4 ImJustBrndn

ImJustBrndn
  • Members
  • PipPip
  • Member
  • 28 posts

Posted 01 October 2006 - 03:31 AM

Mysql databases are available on my server and yes I store all the information in a session called "cart".




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users