0

hello, i'm a newbie in database and php.

I'm having a difficulty of retrieving images that have been uploaded to my database.
Actually I'm wondering if the image is been saved on the database, help me!

while($row = mysql_fetch_array( $result2 )) {
                                // Print out the contents of each row into a table


                                echo  $row['name']. '<br />';
      
                                echo substr($row['description'], 0, 100).'...';
                                echo date("m/d/y",time());

I was trying to retrieve the title and description, however, the image does not appear on the webpage.

Can anyone help me in this matter?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by theonly
0

Without seeing the code that you used to upload the image in the first place, its hard to know if the image is actually upload or not.

Some suggestion about dealing with uploading images. First, instead of storing the actually image in the database, I would store them in a separate directory (folder) and only store the path to the image in a database. So when you want to retrieve the image you will pull the path from the database.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.