In article <dm**********@phys-news4.kolumbus.fi>,
"Kimmo Laine" <an*******************@gmail.com.NOSPAM.invalid> wrote:
"cover" <co****************@yahoo.com> kirjoitti
viestissä:ht********************************@4ax.c om... Does anyone know a successful way to use the dollar sign character
within a query and not generate an error?
Here's what I'm trying to do... I have a query that successfully
counts the number of records within a query as well as totalizes the
dollar amount. What I'd like to do is show a dollar sign ahead of the
'amount' total when it queries back to the screen in my html document.
Is there something I can use to null the normal relationship PHP has
with the $ character where again, I can use it for text purposes?
<?php
$query = "here's a cool dollar sign: ".'$'." , and some more text";
$anotherquery = "Another way to put a dollar sign \$ is to escape it with a
backslash";
echo $query;
echo $anotherquery;
?>
print '$A $third $way $is $to $not $use $interpolating $quotes';
--
Sandman[.net]
Edwin, on protecting against malware:
"I use Avast AV, the Yahoo anti-spy toolbar, the MS anti-spy software,
Windows SP2 with its firewall, AdAware, Spybot Search and Destroy, and
SpywareBlaster."