function multipleImageUpload($arrayimage,$dir,$fields,$table) $table is the name of the table in which you want to store the data. If you have database imagestore and fields name like id,name,address then you need to post data like $fields=array("id"=$_POST, "name"=$_POST,"address"=$_POST) Īnd then pass that field into function $fields $fields is the name of the field which you want to store in the database $dir is the directory in which you want to save the image Note that it will not allow upload to use multiple but you need to create different input field with same name as will you can set dynamic add field of file unput on button click. $arrayimage is the array of images which is sent through form This function can upload multiple images in specific folder as well it can saves the records into the database I have created a php function which is used to upload multiple images, Echo "Sorry, there was an error uploading.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |