Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating url link with 2 sql fields

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
Hi,
I have created a database that has 5 different image file mames within the record...

for the sake of neatness I want to allow the user to place all of these files within a unique folder for each record.

I have therefore created a field that captures the folder name and one that catches the images file name... rather than making them typing in the folder name and a / for each image field (also later on there will be extra images entered into this folder through a different recordset)

using the following code is there a way to add the folder record so that it will look in that folder...

Code:
<img src="<?php echo $row_conf_designer_delete['des_pic']; ?>" alt="designer" name="designer_pic" id="designer_pic" />
the folder field is called pic_folder

(I realise that the user will need create the folder and upload the pic with an ftp - and there may be a more streamlined way of doing this but 1 step at a time)

thanks for any help

[wiggle]The Bird from Down Under- Bigbird 3156
Programmer?? - I thought the option was pretender not programmer!![jester]
 
nevermind...

I figured it out just after posting this...

Code:
<img src="<?php echo $row_conf_designer_delete['pic_folder']; ?>/<?php echo $row_conf_designer_delete['des_pic']; ?>" alt="" name="designer_pic" id="designer_pic" />

[wiggle]The Bird from Down Under- Bigbird 3156
Programmer?? - I thought the option was pretender not programmer!![jester]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top