|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
HI (excuse my poor english
)when im using the shopping cart an i change the "itemid" with a number or a id that begins with 0 or zeros the cart dont load the product.....in the database appear the product but without the zeros...i dont know what to do... please help me... |
|
#2
|
|||
|
|||
|
how do you mean 0's??? at the begginning of the id number???
000456 or like this 4501 please further explain your problem as you havent given much of a description of your problem, and also the code thats causing any errors would be good |
|
#3
|
|||
|
|||
|
Hi rzo
Chek your cod - i think, u have some procedure for cut zero-s at start of your data, before put it to database.
Sincerely, Victor Letunovsky AlarIT programmer http://www.AlarIT.com |
|
#4
|
|||
|
|||
|
This is a string "000456"
This is an integer (number) 456 In your database, if you have a number field, and you pass in "000456" the database engine will most likely change this to a number such as 456. To match this number, you should change your itemid to 456... So, if: $itemid = "000456"; Then you should do: $itemid = (int)$itemid; Now $itemid contains a number |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Shopping cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|