This is a discussion on "how to view an image to the upload directory?" within the PHP Forum section. This forum, and the thread "how to view an image to the upload directory? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
how to view an image to the upload directory?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
how to view an image to the upload directory?
how to view an image to the upload directory?
i am using this <img src=$row[image]> correct me if im wrong here... below is my php code for my upload.php but the problem is how to view the image? hope anyone can help me..
|
|
|
|
||||
|
Re: how to view an image to the upload directory?
i think u should use this code in HTML if u want to use php :
<img src="<?php echo $row[image] ?>">
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
||||
|
Re: how to view an image to the upload directory?
Yep, you must have the <?php ?> in there.... Also if you are using xHTML you need to do this:
|
|
|||
|
Re: how to view an image to the upload directory?
thanks for the response, but nothing happens here no image have shown..
|
|
||||
|
Re: how to view an image to the upload directory?
if ur file r online, please send the links...
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
||||
|
Re: how to view an image to the upload directory?
$row doesn't actually appear to be anything....
You won't be able to simple echo out the $_FILES['file']['name'].. You need to know where in relation to your webpage root directory your uploaded image will be.. Then you would be able to echo using
home/user/public_html/www/image.jpg which obviously is not right relative to your webpages root directory. Hope that helps,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Example of Image Upload | hanusoft | Classic ASP | 1 | Sep 20th, 2007 10:39 |
| upload image | webdeveloper | Classic ASP | 0 | Aug 3rd, 2007 07:54 |
| Setting the directory to upload an image php | djme | PHP Forum | 2 | Jan 11th, 2006 15:39 |
| Image Upload/Delete | ekendricks | Classic ASP | 5 | Nov 18th, 2003 12:36 |