Re: Confused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just read the thread, so I hope I am not missing anything important.

You talk about a "php page", but the IMG code is HTML, so I suppose you have the HTML tags in place.

I tried this

<html>
<body>
<img src="<?php $a="teste"; echo $a; ?>" width="87" height="120" />
</body>
</html>

and it works fine.
Maybe you have some quotes missing, that are needed to have the right syntax.
If this doesn't help, you can, if you want, send the full code and I'll take a peek



Luis

Schalk Neethling wrote:

So in my mind I am thinking after being parsed there should be a line reading:

<img src="../media/ads/001.jpg" width="87" height="120" />

Justin Patrin wrote:

On Fri, 30 Jul 2004 23:46:22 +0200, Schalk Neethling
<schalk@xxxxxxxxxxxxx> wrote:


Why would the following line not be parsed in a PHP page?

<img src="<?php echo $row_ads['full_img']; ?>" width="87" height="120" />



Are you saying that all other PHP code in the page is run, but this isn't?

This is how I would code that:

<?php
echo '<img src="'.$row_ads['full_img'].'" width="87" height="120" />';





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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux