Jump to content

Uploading multiple images to db with PHP?


uchiha007

Recommended Posts

Well this has been a hairpulling situation that I am stuck in. I can manage to upload multiple images to the server, but not to the database in MySQL. What I want is to make a gallery database table so I can then call those images uploaded in a certain way. I can't rely on uploading it the serer because with the images names is hard to make them come out the way I wanted, so I figured the best would be to upload it to a db table and from there sort them by id_number,only then sill I be able to do what I want. Is just my way of thinking tho, if there's an easier way that does not require to upload it to a database then by all means please tell me =]

Link to comment
Share on other sites

You will upload files to server, to some folder. Then use $file_name = $_FILES['myfile']['name']; // myfile will be repleaced with your input tag name, you know ;pAnd then do query with this var..

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...