Jump to content

images path name...


Alidad

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.