[56K WARN] $_SESSIONS N00b
Posted: Fri Dec 22, 2006 1:37 pm
Ok I got this new job and my boss has me working on the corporate website which is mostly HTML and PHP. Well I know PHP but with some limitation. I know NOTHING about sessions and the guy who actually did most of the work on here did one hell of a job and no longer works for us. Anyway I have seriously looked at about 100+ sites now trying to find something and my head is about ready to explode this is also about my 4th forum I am trying to get help from. So now I will get to the point and explaine my delema and hopefully some of you PHP wizards can lend a huge helping hand as it is much needed and would be even more appreciated. So with that said, here we go.
The page/form I am designing is based off of one that already exsists on our site now. My plan is to have mine behave EXACTLY like the exsisting one. Only difference with mine is that a customer can enter in a model number and a quantity and hit enter or the update quote button, and after doing so they can build a list of parts for a quote. Now I have on my form a text box called "model" for the customer to enter a product id and I have a text box caled "prod_quantity" where a customer can enter a quantity for the part.
Here is how it all works. We have a MySQL db that all the products and information is stored on. On my form when a "model" number is submited a connection is made to the db and I get a model number in "link" form (this is an href to the parts corisponding image on the server) and I get a "little_desc" which is the short description for that part.
Now if you go here http://www.winsted.com/winstedSQL/famil ... ?name=lcd3 enter in quantities for a few items and hit the update quote button (on bottom of page). Also notice that you can change quantities within the order and outside of the order.Also Now I know that I need a sessions script to handle this which I do not have and also do not understand much. But if I had something to build from I know I could edit it and do it that way and might not be an issue. Here is a rough graphical representation of what I have and what I need.
I have the form part but when a customer types in a model number and a quantity I need it to appear as a list above the form as illustrated.
Based on the information given and any code any of you need me to post if needed, is it possable for anyone to post a sample script that I would beable to fallow and edit and hav working to do what I need it to?
I will submit any code if needed to better help me in my situation.
Thank you all in advance for the help it is greatly appreciated.
The page/form I am designing is based off of one that already exsists on our site now. My plan is to have mine behave EXACTLY like the exsisting one. Only difference with mine is that a customer can enter in a model number and a quantity and hit enter or the update quote button, and after doing so they can build a list of parts for a quote. Now I have on my form a text box called "model" for the customer to enter a product id and I have a text box caled "prod_quantity" where a customer can enter a quantity for the part.
Here is how it all works. We have a MySQL db that all the products and information is stored on. On my form when a "model" number is submited a connection is made to the db and I get a model number in "link" form (this is an href to the parts corisponding image on the server) and I get a "little_desc" which is the short description for that part.
Now if you go here http://www.winsted.com/winstedSQL/famil ... ?name=lcd3 enter in quantities for a few items and hit the update quote button (on bottom of page). Also notice that you can change quantities within the order and outside of the order.Also Now I know that I need a sessions script to handle this which I do not have and also do not understand much. But if I had something to build from I know I could edit it and do it that way and might not be an issue. Here is a rough graphical representation of what I have and what I need.
I have the form part but when a customer types in a model number and a quantity I need it to appear as a list above the form as illustrated.
Based on the information given and any code any of you need me to post if needed, is it possable for anyone to post a sample script that I would beable to fallow and edit and hav working to do what I need it to?
I will submit any code if needed to better help me in my situation.
Thank you all in advance for the help it is greatly appreciated.