C
|
cgphp 1/1/2014 |
You can format the amount using the "View as" setting http://xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm |
S
|
shoppy author 1/1/2014 |
You can format the amount using the "View as" setting http://xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm If the the "paid" field is checked, the amount will be empty.
|
C
|
cgphp 1/1/2014 |
Post the database names of the "Paid" and "Amount" fields. |
S
|
shoppy author 1/1/2014 |
Post the database names of the "Paid" and "Amount" fields.
|
C
|
cgphp 1/1/2014 |
Set the "Bedrag" field as Custom and add the following code: if($data['Betaald'] == 'checked')
|
S
|
shoppy author 1/1/2014 |
Set the "Bedrag" field as Custom and add the following code: if($data['Betaald'] == 'checked')
|
C
|
cgphp 1/1/2014 |
What is the value of the Betaald field in the database when it is checked? |
S
|
shoppy author 1/1/2014 |
What is the value of the Betaald field in the database when it is checked?
if($data['Betaald'] == '1')
|
C
|
cgphp 1/1/2014 |
My last question is how to change the amount back to currency because it is now just a number.
|
S
|
shoppy author 1/1/2014 |
the field was set to currency so it apeared as € 2000,- (example) |
C
|
cgphp 1/1/2014 |
if($data['Betaald'] == '1') |
S
|
shoppy author 1/1/2014 |
if($data['Betaald'] == '1')
|
C
|
cgphp 1/1/2014 |
Check the PHP money_format function http://www.php.net/manual/en/function.money-format.php |
S
|
shoppy author 1/2/2014 |
This is what I tried ...
|
![]() |
Sergey Kornilov admin 1/2/2014 |
What Cristian suggested is money_format function. You are trying to do something else. |
S
|
shoppy author 1/2/2014 |
Hi Sergey, |
C
|
cgphp 1/2/2014 |
Check this page for an easy explanation http://www.w3schools.com/php/func_string_money_format.asp |
S
|
shoppy author 1/3/2014 |
Cant get it to work like I want to. if($data['Betaald'] == '1')
|