C
|
cgphp 10/5/2011 |
You need quotes around the 0: case '0';
|
C
|
crhys author 10/5/2011 |
Hi Cristian, |
C
|
cgphp 10/5/2011 |
Is LicPoints a varchar ? |
C
|
crhys author 10/5/2011 |
Hi, |
C
|
crhys author 10/5/2011 |
Missed this info |
C
|
cgphp 10/5/2011 |
If LicPoint is a INT, remove the quotes around the case values: if ($values["LicPoints"]) |
C
|
crhys author 10/5/2011 |
Thats what I started off with - lol |
C
|
cgphp 10/5/2011 |
At the end of the case statement place a colon not a semicolon: case 0: |
C
|
crhys author 10/5/2011 |
adding a colon made no difference - case 0: replacing case0; |
![]() |
Sergey Kornilov admin 10/5/2011 |
All case 0: lines should end with colons (semicolons are incorrect there). The same applies to default: |
C
|
crhys author 10/5/2011 |
Thats interesting info, done the changes to the case & default commands but I still get the same issue, the code works great for any number except for 0 |
C
|
cgphp 10/5/2011 |
Try out this code: $test = 0; |
C
|
crhys author 10/5/2011 |
Yep |