Alidad Posted November 17, 2009 Share Posted November 17, 2009 Hi,I'm rookie for php, and I'm trying to learn how to write that code. i have create upload images where i can save imges in folder called "images" and then put image file path name for sample "images-folder\image.png" along with some comments text in second column. My question is that if i want to reterieve images and text using database how can write that statments for sample "row...." please help me i need to learn that thanks. AM Quote Link to comment Share on other sites More sharing options...
thepip3r Posted November 17, 2009 Share Posted November 17, 2009 if all you have done is create the directory on your webserver to store the images, i highly recommend starting with a PHP book and some online tutorials. Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted November 18, 2009 Share Posted November 18, 2009 In order to retrieve the image from database is very simple after connecting and get the filename from your database using array $array=mysql_fetch_array('$yoursql'); $filename=$array['filename']; then you can write <img src="your database folder/<?php echo $filename;?>"> Hope it helps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.