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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUERYING FROM DATABASE AND FOLDER ??

Status
Not open for further replies.

kingjjx

Programmer
Sep 18, 2001
181
0
0
US
Hi, I want to ask how I can display results of a query or how to do this query .... .

I have a database called CARS where information of car name and owner is stored, and a folder called CARIMAGES where users upload pictures of their cars.

How do I output the car owner's name, his car and the name of his picture file in a page.

Result would look something like this:

OWNER: JAMES
CAR: HONDA
PICTURE: Jameshonda.JPG

OWNER: MARK
CAR: BMW
PICTURE: Mark.JPG


thanks !!
 
You need to also store the file name of the images in your database so you can dynamically show them. So it'll be something like:
<cfoutput query=&quot;q_cars>
OWNER: #name#
CAR: #car#
PICTURE: <IMG SRC=&quot;#carpic#&quot;>
</cfoutput>
 
hey .. how do i upload the images ?
can i do multiple uploads ???

the only way i know how to upload a file is :
Image: <INPUT TYPE=&quot;FILE&quot; NAME=&quot;FILE1&quot;>
<input type=&quot;submit&quot;>

how do i write the upload script to upload the images and the owner's name and car name at one time ??

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top