Print statements , syntax , usage, etc

From: Date: Mon, 22 Oct 2001 16:54:10 +0000
Subject: Print statements , syntax , usage, etc
Groups: php.general 
Request: Send a blank email to php-general+get-71852@lists.php.net to get a copy of this message
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

« previous php.general (#71852) next »