Re: Displaying images
| From: | Michael A. Peters | Date: | Wed, 27 May 2009 19:53:05 +0000 |
| Subject: | Re: Displaying images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293246@lists.php.net to get a copy of this message | ||
Miller, Terion wrote:
I am trying to get an image to display but I get nothing if done like this: <tr>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><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....