# \[PHP\] image upload

**URL:** <https://forum.kirupa.com/t/php-image-upload/210387>\
**Category:** programming\
**Created:** [December 18, 2006, 1:32pm UTC](https://forum.kirupa.com/t/php-image-upload/210387 "2006-12-18T13:32:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this\_me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this_me/32/2683_2.png) [@this\_me](https://forum.kirupa.com/u/this_me)\
**Post date:** [December 18, 2006, 1:32pm UTC](https://forum.kirupa.com/t/php-image-upload/210387/1 "2006-12-18T13:32:22Z")

</div>

Hi there… for now i’m working on a content management system for my website.  
In there is an option to upload a small and a big image.

i want to change that into a small image and several bigger images to include in an array.  
But how?

At this moment i use the temp\_name and give the images the name Project\_$id\_big.jpg

but what if i like to add them in an array? how do i make them unique? add a variable $subid? and give the picture the name project+$id\_big\_$subid.jpg?

Or a whole new add in my database table wich saves the name of the images…

I created the cms form several files i found at my work, in books and on the internet. But i don’t know how to handle this issue. does someone can give me the answer what to do best to resolve this problem.

Kind regards Jos
