Re: Print statements , syntax , usage, etc
| From: | CC Zona | Date: | Mon, 22 Oct 2001 18:26:51 +0000 |
| Subject: | Re: Print statements , syntax , usage, etc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71854@lists.php.net to get a copy of this message | ||
In article <yam8695.501.1988579648@correo.movinet.com.uy>,
axis@movinet.com.uy (Ricardo Fitzgerald) wrote:
> *print '<td width="25%" bgcolor="#FcaF00"><b><font
> face="Tahoma, Verdana,
> Arial, Sans Serif">Ref:</font><b/></td>';*
> *print '<td width="25%" bgcolor="#FFFF00"><b><font
> face="Tahoma, Verdana,
> Arial, Sans Serif">$reference</font><b/></td>';*
>
> the problem is with the output, the table is fine but the variable $reference
> otputs it's name $reference instead of it's value i.e. 345. I'm getting mad
> because I know this has to be some kind of syntax error but I tried
> exchanging quotes for double quotes, adding parenthesis and stuff like that
> and I couldn't figure out what the prob is ...
Re-try the double quotes. Variable expansion is available within double
quotes. It is not within single quotes.
--
CC