Re: Print statements , syntax , usage, etc
| From: | Papp Gyozo | Date: | Mon, 22 Oct 2001 18:12:18 +0000 |
| Subject: | Re: Print statements , syntax , usage, etc | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71853@lists.php.net to get a copy of this message | ||
hello,
please read about strings more in the the manual:
http://www.php.net/manual/en/language.types.string.php
Variable aren't parsed in strings enclosed by single quotes ''.
----- Original Message -----
From: "Ricardo Fitzgerald" <axis@movinet.com.uy>
To: <php-general@lists.php.net>
Sent: Monday, October 22, 2001 6:54 PM
Subject: [PHP] Print statements , syntax , usage, etc
Hi,
¡'m new to php, but not to programming, I'm having problems using a simple
print statement :
*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 ...
Regards,
Rick
Right the output shows Ref:$reference
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net