RE: [PHP-DB] width& height
| From: | Xuepeng Li | Date: | Sat, 31 Mar 2007 16:40:53 +0000 |
| Subject: | RE: [PHP-DB] width& height | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43386@lists.php.net to get a copy of this message | ||
<?php echo "<img src='/album/img/".$photoFileName[2]."
width="90"
height="70" border='0' / >"; ?>
Should be:
<?php
echo "<img src='/album/img/" . $photoFileName[2] . " width=\"90\"
height=\"70\" border='0' / >";
?>
Or
<?php
echo "<img src='/album/img/" . $photoFileName[2] . " width='90'
height='70' border='0' / >";
?>
Or
<?php
echo '<img src="/album/img/' . $photoFileName[2] . ' width="90"
height="70" border="0" / >';
?>
And the third one is the best.
-----Original Message-----
From: elk dolk [mailto:elkdolk@yahoo.com]
Sent: Friday, March 30, 2007 7:32 PM
To: php-db@lists.php.net
Subject: [PHP-DB] width& height
it might be a stupid question but I think it would be the last one!
I am trying to define the height and width of picture in the following line:
"<img src='/album/img/".$photoFileName[2]." / >"; ?></td>
when I put it like this:
<table width="50%" border="0" cellspacing="3"
cellpadding="0">
<tr>
<td width="90" height="70"><?php echo "<img
src='/album/img/".$photoFileName[2]." width="90" height="70"
border='0' /
>"; ?></td>
</tr>
<tr>
<td width="90" height="70"> </td>
<td width="90" height="70"> </td>
</tr>
</table>
<p> </p>
<p>
I have this error:
PHP Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in
C:\Inetpub\wwwroot\album\2dimArray2.php on line 44
please comment!
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.