Adding multiple images

Reply

Join Date: Jul 2008
Posts: 32
Reputation: knrakesh is an unknown quantity at this point 
Solved Threads: 0
knrakesh's Avatar
knrakesh knrakesh is offline Offline
Light Poster

Adding multiple images

 
0
  #1
Dec 29th, 2008
Hello friends
If i want to add multiple images (suppose 10 images) to a database
how can any one give me the sujjestion please
help me

Thank u in advance
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,071
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: Adding multiple images

 
0
  #2
Dec 29th, 2008
you can do it by giving image name as img1,img2,img3,img4,img4,img5,img6 and so on...

and put your adding image code in for loop like:
  1. for($j=1;$j<=10;$j++)
  2. {
  3. //code for image addition
  4. and image name should like $_POST['img'.$j]
  5. }
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC