Jump to content

storing the name of an uploaded file in am msql database


mahalleday

Recommended Posts

I am in the beginning stages of developing a classified ad application in php and mysql, and I have run into a snag.  I have created a script that will allow useres to create an add and upload an image of the item they are selling.  I am storing the files on the server not in a database but I would liek to store the file name in the database so I have some relationship between the ads the the images that go along with them.

 

I can't seem to figure out how to pass the file name into my mysql query and that it shows up in the apporiate field in the ads table of my database.  All the other info (price title description etc) are passed along just fine, but never the file name.

 

Any suggestions.  I'll post my code tonight if that will help. 

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.