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?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.