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

Reading and Inserting filenames 1

Status
Not open for further replies.
To list/get all of the files in the directory, you can use

<cfdirectory action=&quot;LIST&quot;
directory=&quot;C:\Inetpub\ name=&quot;get_images&quot;>

Then, just loop through the list and insert the image name into the database

<cfloop query=&quot;get_images&quot;>
<cfquery>
INSERT INTO table(ImageField)
VALUES(#Name#)
</cfquery>
</cfloop>

Hope This Helps!

Ecobb

&quot;Alright Brain, you don't like me, and I don't like you. But lets just do this, and I can get back to killing you with beer.&quot; - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top