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. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.