Shilohcity
Technical User
Hi there
I have read all sorts of opinions regarding the use of session variables vs. querystrings vs. database entry etc.
and was wondering if anybody had any tips for my situation.
I am in the process of building a shopping site and am planning to use a mix of hidden fields and database entry to manage the cart of the shoppers. The only problem I can forsee is that if the shopper enters more than one item it is forwarded as a string so if at a later date they wish to add further items and I use an "UPDATE itemorder WHERE "&orderid&" = orderid" it will overwrite the existing values with the new ones.
Maybe I should hold all the items, quantities etc as hidden fields? or maybe I should use a session variable.
Well feedback is appreciated on this especially as my hosting company has threatened to go through my code line by line to prevent server degradation at $100.00 an hour EEEEEEEKKKK!!
Cheers muchly
Justin.
I have read all sorts of opinions regarding the use of session variables vs. querystrings vs. database entry etc.
and was wondering if anybody had any tips for my situation.
I am in the process of building a shopping site and am planning to use a mix of hidden fields and database entry to manage the cart of the shoppers. The only problem I can forsee is that if the shopper enters more than one item it is forwarded as a string so if at a later date they wish to add further items and I use an "UPDATE itemorder WHERE "&orderid&" = orderid" it will overwrite the existing values with the new ones.
Maybe I should hold all the items, quantities etc as hidden fields? or maybe I should use a session variable.
Well feedback is appreciated on this especially as my hosting company has threatened to go through my code line by line to prevent server degradation at $100.00 an hour EEEEEEEKKKK!!
Cheers muchly
Justin.