mahalleday Posted October 20, 2008 Share Posted October 20, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/129298-storing-the-name-of-an-uploaded-file-in-am-msql-database/ Share on other sites More sharing options...
Maq Posted October 20, 2008 Share Posted October 20, 2008 We need to see your code... Quote Link to comment https://forums.phpfreaks.com/topic/129298-storing-the-name-of-an-uploaded-file-in-am-msql-database/#findComment-670318 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.