Jump to content

How to make bulk insert using php?

- - - - -

  • Please log in to reply
8 replies to this topic

#1
arunjoseph

arunjoseph

    Newbie

  • Members
  • PipPip
  • 12 posts
Hi , I was working on a application so I am required to upload files to the site with the help of a ajax plugin called uploadify. When it uploads it should also make a insertion into the database please tell me how to do that?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Do you know how to do an insert into the database using a standard form submission?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
arunjoseph

arunjoseph

    Newbie

  • Members
  • PipPip
  • 12 posts
Ya I do know that!

---------- Post added at 08:56 PM ---------- Previous post was at 08:18 PM ----------

But I need it to allow multiple upload dialogs to come up and I am using uploadigy

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You've got three issues:
1) a quick search suggests there may be multiple versions of uploadify. Which version are you working with?
2) once you know the version, you need to identify how the AJAX call is received in your PHP script
3) once you know that, you just have to parse the data and convert it into the necessary calls to load it into your database.

Given all that, where are you at?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
arunjoseph

arunjoseph

    Newbie

  • Members
  • PipPip
  • 12 posts
Well I made a way to make multiple instances of uploadify plugin but I need to know how it uploads files to the server!

---------- Post added at 03:08 PM ---------- Previous post was at 03:00 PM ----------

http://www.iamonly4u...d/uploadify.zip
http://www.iamonly4u...pload/tempd.zip
Here are my progress with the project!

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Your project doesn't appear to include any version of uploadify. Are you using the jQuery version, the flash version, the???
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
arunjoseph

arunjoseph

    Newbie

  • Members
  • PipPip
  • 12 posts
Well basically in the files which i have supplied that I am using!
I suppose its the flash version!

#8
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Which of your PHP files is listening for the ajax calls from the flash version? That's the one you'll need to modify to load the file into your database.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#9
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
I prefer to save the files to a folder and save their names in the table, that way you don't have giant bulking incompatible databases.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users