Re[2]: [PHP] Img src CORRECTION
| From: | Martin Hudec | Date: | Wed, 08 Jan 2003 20:32:15 +0000 |
| Subject: | Re[2]: [PHP] Img src CORRECTION | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130800@lists.php.net to get a copy of this message | ||
Hello Sean,
oh i must correct myself ;)) .....
or try to use this:
print "<img src=\"".$row["foto"]."\" width=\"104\"
height=\"137\">";
or just
print "<img src=\"".$row["foto"]."\" width=104
height=137>";
looks like u have error here:
print "<img src=\"" . $row["foto"] . "" width='104'
height='137'\">";
^ ^^
^ - use \ before "
^^- no need to use both \ and " remove those two characters
or try this
your php
?>
<img src="<? echo $row["foto"];?>" width=104 height=137>
<?
your php
--
Best regards,
Martin mail corwin@corwin.sk
mobile +421.907.303.393
icq 34358414
www http://www.corwin.sk
PGP key fingerprint 21365ca05ecfd8aeb1cf19c838fff033
"In those days spirits were brave, the stakes were high,
men were real men, women were real women and small furry
creatures from Alpha Centauri were real small furry creatures
from Alpha Centauri."
by Douglas Adams
Wednesday, January 8, 2003, 8:55:08 PM, you wrote:
SB> Ezequiel Sapoznik wrote:
>> I am having a parse error in the following sentence:
>>
>> print "<img src=\"" . $row["foto"] . ""
width='104' height='137'\">";
>>
SB> it would help if you posted the actual error message !
SB> but try this ...
SB> print '<img src="' . $row["foto"] . '"
width="104" height="137">';
SB> or
SB> print "<img src=\"" . $row["foto"] . "\"
width='104' height='137'\">";
SB> --
SB> Sean