| 
	
 | 
 Posted by Sandman on 12/04/05 13:11 
In article <dmufad$7tb$1@phys-news4.kolumbus.fi>, 
 "Kimmo Laine" <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid> wrote: 
 
> "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; 
>  
> ?> 
 
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."
 
[Back to original message] 
 |