hello, my name is slade. i’m working with a shopping cart template that allows for the option to choose the product, choose the quantity, choose the earpiece. there are only three items that we offer so it seems like a pretty straight forward script. i was hoping to avoid sessions and use a php to convert the values of the options to variables then insert them into the mysql db. here is the back of the html code:
[code]
Item Description |
TEMPLE |
The Carat
These Diamond Shape Spectacles Accentuate Anyone's Style and Grace.
MDL331
|
Size Buffalo Horn Gold Rose Gold White Gold Titanium Platinum Whale Bone |
|
The Minimum
Timeless Design, A true work of art, High Quality Lenses, A Comfortable Fit MDL332
|
Size Buffalo Horn Gold Rose Gold White Gold Titanium Platinum Whale Bone | Qty: | $4000.00 | $4000.00 | ||
---|---|---|---|---|---|---|---|---|---|---|---|
[/code] here is my php: /*** mysql username ***/ /*** mysql password ***/ try { /*** close the db connection. always do this ***/
catch(PDOException $e) echo(‘Thank you for choosing our services. Your order is being processed.’) [/php] I’m looking for the db to produce a output similar to this: echo print_r($array); And the output is: [options4521] => Array
thank you all. glad you all around. |