|
You are Unregistered, please register to gain Full access.
|
|
![]() |
|
![]() |
|
|||||||
| Free Php Scripts Download Free Ware Php Scripts Here |
| Earn Fast Money | NulledScript Hosting | Masala Planet | Your Link Here? | Katz |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
One shopping solution of many is a session solution with classes (OOP). Standard features: Cookie control, presentation of products, basket handling (add, remove, increase, reduce quantity, zero result handling, subtotal and total), session check plus detection of string manipulations. The handling of the orders is done by the basket class. That for we need two sessions: one for the basket with the orders and one for the quantities of orders (which are identified through arrays and the product id). In the next step we control, if the user takes the same order more then once. Whith a control variable (+/-) and a foreach loop we increase or reduce the quantity. The shopping basket is a combination between a while-list-each- and a database-query. If quantity result is zero, order will be removed from basket. Security feature: Intrudors will be recognized by a explode script that determines string manipulations (in this example a table name, but also very usefull for other strings).
|
| The Following User Says Thank You to PcM For This Useful Post: | ||
jewelbd (10-05-2008) | ||
|
#2
|
||||
|
||||
|
Hey man fine
|
|
#3
|
||||
|
||||
|
Thank Dude
Nice Share |
|
#4
|
||||
|
||||
|
Thax very very nuch
|
|
#5
|
||||
|
||||
|
Let me see this dude....
|
|
#6
|
||||
|
||||
|
Let me see this dude....
|
|
#7
|
||||
|
||||
|
................................................
|
|
#8
|
||||
|
||||
|
Thanx a lot buddy
|
|
#9
|
||||
|
||||
|
Thanks
Was looking for it.....
__________________
its me
|
|
#10
|
||||
|
||||
|
lemme seee........
__________________
Confused Man
![]() ![]() ![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
(View-All)
Members who have read this thread : 6
|
|
| az_liton, blaqiron, divyang_ddk, franhorv, PcM, whyiteasy |
| Thread Tools | |
| Display Modes | |
|
|