Copy link to clipboard
Copied
Hi,
I'm just following one of the tutorial from Lynda.com and found that when I change the format of a variable from a record set something very odd happens ... certainly not what happens in the tutorial.
Okay .. here is what I'm doing ...
I've installed the extension 'PHP Numeric Formats' from the Adobe Exchange and restart DWeaver.
I select the price variable {rsTitles.price} go to Bindings and change the format to the USDollar and as soon as the format is inserted all the images, formatting and text disappears in the design view and is replaced by a number of PHP icons.
Going to Live mode it is displaying ok ... but not being able to see what's going on in the design view is going to limit things somewhat.
All the other formats from the 'PHP Numeric Formats' have the same effect.
I also installed 'PHP Server Formats' (latest version from the programmers website) and the date format works ok .. but doesn't seem to have any currency options.
So first question is: Why is the above problem happening ... Does this happen to anyone else?
2nd question is: May you know of a better extension for currency and numeric formats. that doesn't cause the design view to disappear?
Many thanks for your time and I would really appreciate any help.
Best wishes,
Nick
I've attached some screenshots of the problem
Copy link to clipboard
Copied
This 'may' be an incompatibility problem with the extension and CS4, try the following extension as this one has 2 different versions, one for the 'old' Macromedia versions and a new one for the adobe cs versions.
http://www.tecnorama.org/document.php?id_doc=51
PZ
Copy link to clipboard
Copied
Hi PZ,
Thanks for the help.
Unfortunately it wasn't those server extensions that were causing the display problem.
The problem with the server extensions you mention were that the curreny formats don't seem to include $ or £ .. is that right? Or do they work for you?
So I'm still at a loss to find some extensions that include currency symbols/formatting.
Thanks,
Nick
Copy link to clipboard
Copied
The currency symbol is not included in any php currency formatting that I know of, if you wish to include this in your code you use simple html (Unicode characters), you can make this into an - if country="US" then currency="$" else currency="£" statement using php.
using html -
<td>£<?php echo $row_rs_orderdatails['total_cost']; ?>p</td>
PZ
Copy link to clipboard
Copied
Hi,
Doh! I've just realised what is happening ... my computer restarted but the WampServer (local.host) was not restarted and was not running at the time of applying the extensions. Once it is up and running all the currencies formats work just fine .... as I said before ... doh!
If your looking for formating for currency in an exstension ... I've been using 'FX PHP Formats' avaliable for download free here after registering:
http://www.felixone.it/extensions/freedwextsen.asp
Cheers,
Nick