Jump to content


Multiple File Upload w/ database insertion


3 replies to this topic

#1 trs21219

    Young Padawan

  • Members
  • Pip
  • 31 posts
  • Gender:Male
  • Location:Pittsburgh, Pa

Posted 09 May 2007 - 08:54 PM

ok here is what i need to know how to do....

i need a script or a way to have a multiple file upload. it will put all the files in a directory and rename them to the autoincrement in the database. it also has to put the file path in the database and all it has to insert in the database is "say if its image #9 it would put 9.jpg in the database file path." the title and other info would be filled out later by another form. or they could be put on the same form if you like.... i think this is pretty simple just dont know how to do it .

this would use php and mysql (it could also use ajax or flash, etc for the uploading)
if anyone could help i would be very grateful.

my gallery_images table (the one the file path and autoincrement would be stored in )
ID (int) auto
Title (varchar)
Description (text)
URL (varchar)
Albulm ID (int)

ps. if it could also resize the images that would be good but not nessesary.

Edited by trs21219, 09 May 2007 - 08:56 PM.


#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 09 May 2007 - 09:39 PM

Simply use some basic tutorials and you can easily piece it all together.

Multiple Uploading
MySQL

Or, you can always hire someone, though its a really easy script to put together by following those tutorials.

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 09 May 2007 - 11:43 PM

Are you ordering this script, or are you asking for advice on how to make it?

Edited by rc69, 09 May 2007 - 11:43 PM.


#4 trs21219

    Young Padawan

  • Members
  • Pip
  • 31 posts
  • Gender:Male
  • Location:Pittsburgh, Pa

Posted 10 May 2007 - 10:02 PM

advice but im gonna check those tutorials first





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users