Re: Displaying images

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

 



Miller, Terion wrote:
I am trying to get an image to display but I get nothing if done like this:

   <tr>
            <td>Scout Photo:</td>

   <td><img src="<?php echo $row['ePhoto'];?>"></td>

</tr>
If I just echo the field I do get the file name....




Do you get the just the file name or the full path to the image on the server?

If, say, the image is at /images/jamboree/whatever.jpg but $row['ePhoto'] only produces whatever.jpg, try:


<tr>
   <td>Scout Photo:</td>
   <td><img src="/images/jamboree/<?php echo $row['ePhoto'];?>"></td>
</tr>


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux