DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Adding multiple images (http://www.daniweb.com/forums/thread164687.html)

knrakesh Dec 29th, 2008 2:07 am
Adding multiple images
 
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

Shanti Chepuru Dec 29th, 2008 2:40 am
Re: Adding multiple images
 
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:
for($j=1;$j<=10;$j++) 
{
//code for image addition
and image name should like $_POST['img'.$j]
}


All times are GMT -4. The time now is 5:49 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC