# File array and inserting into mysql

**URL:** <https://forum.kirupa.com/t/file-array-and-inserting-into-mysql/275490>\
**Category:** programming\
**Created:** [November 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/file-array-and-inserting-into-mysql/275490 "2008-11-14T09:49:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patch](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/patch/32/1095_2.png) [@Patch](https://forum.kirupa.com/u/Patch)\
**Post date:** [November 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/file-array-and-inserting-into-mysql/275490/1 "2008-11-14T09:49:40Z")

</div>

Hi all,

Need a little help with php and mysql. Basically I have a form that has multiple fields for uploading files. I’ve put them in array like so:

```auto

<input type="file" name="myFile[]" />

```

Now, the problem I’m having is how to approach the upload. Because I need to insert the file into the database and make sure they each have their own row.

Do I loop through the query? I’m just worried about server ‘stress’. If you have any tips or know of any tutorials I’d really appreciate it.

Thanks
