Reply to Re: Using the $ character in query

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация