RE: [PHP-DB] width height

2007-03-31 Thread Xuepeng Li
?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:[EMAIL PROTECTED] 
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=70nbsp;/td
td width=90 height=70nbsp;/td
  /tr
/table
pnbsp;/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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] width height

2007-03-31 Thread JM Guillermin

Try this one :

table width=50% border=0 cellspacing=3 cellpadding=0
 tr
   td width=90 height=70
 img src=/album/img/?= $photoFileName[2] ? width=90 height=70 
border=0 / 

   /td
 /tr
/table

Or :

table width=50% border=0 cellspacing=3 cellpadding=0
 tr
   td width=90 height=70
 img src=/album/img/?php echo $photoFileName[2] ? width=90 
height=70 border=0 / 

   /td
 /tr
/table


the second if your php.ini don't allow short tag usage.

jm



- Original Message - 
From: Xuepeng Li [EMAIL PROTECTED]

To: 'elk dolk' [EMAIL PROTECTED]; php-db@lists.php.net
Sent: Saturday, March 31, 2007 6:40 PM
Subject: RE: [PHP-DB] width height



?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:[EMAIL PROTECTED]
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=70nbsp;/td
   td width=90 height=70nbsp;/td
 /tr
/table
pnbsp;/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.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] widthheight already solved!

2007-03-31 Thread elk dolk
thank you all this code solved it:

?php echo img src='/album/img/{$photoFileName[2]}' width='60' height='70' 
border='0' / ;?
 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Re: [PHP-DB] widthheight already solved

2007-03-31 Thread Dimiter Ivanov

On 3/31/07, elk dolk [EMAIL PROTECTED] wrote:

thank you all this code solved it:

?php echo img src='/album/img/{$photoFileName[2]}' width='60' height='70' border='0' 
/ ;?

-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.


I liked that you moved the list a bit.
But your problem was more related to the php-general list or by simply
reading the  manual.

http://php.net/echo

Before sending a mail to a thousands of people, you should at least
read the manual.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php