Posted by Kimmo Laine on 12/04/05 12:10
"cover" <coverlandNOSPAM914@yahoo.com> kirjoitti
viestissδ:ht75p19vmbq58lmoqk1jiuutnf32hkbrom@4ax.com...
> 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;
?>
--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at <http://setiweb.ssl.berkeley.edu/>
Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>
[Back to original message]
|