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 Link to comment https://forums.phpfreaks.com/topic/181937-images-path-name/ 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. Link to comment https://forums.phpfreaks.com/topic/181937-images-path-name/#findComment-959650 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 Link to comment https://forums.phpfreaks.com/topic/181937-images-path-name/#findComment-959788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.