Hello
I am not able to make this code work:
I want to add the [currency] in place of "afkv" the output would be : frt_9_3
9 = USD
3 = device 1
Thanks
Ron
I am not able to make this code work:
< ?php echo "\n {$prices['frt_'.$form->data['currency'].'_afkv']}"; ? >
I want to add the [currency] in place of "afkv" the output would be : frt_9_3
9 = USD
3 = device 1
Thanks
Ron
Hi,
I have tried this code but I cannot find the error as it does not work:
Thanks
Ron
I have tried this code but I cannot find the error as it does not work:
< ?php
$price_string = $form->data['frt'].'_'.$form->data['currency'].'_'.$form->data['device'];
$freight_value += "\n {$prices[$price_string]}";
?>
Thanks
Ron
Hi Ronn,
We can't provide a free service for debugging user's bad PHP :-(
But - in this case the {$variable} syntax will not work if you add a string inside the {} - keep it just to the variable name.
Bob
We can't provide a free service for debugging user's bad PHP :-(
But - in this case the {$variable} syntax will not work if you add a string inside the {} - keep it just to the variable name.
Bob
This topic is locked and no more replies can be posted.