Hello Guys i'm in need of some major assistance.

I'm busy with a website and will need to bring in a Image upload section where people can upload photos to. (max of 6 )

I have very very limited coding knowledge on this. i can program basic functionality and sections of a website.

I need a piece of code that can validate a image upload ( max size 2meg/ 2000pixels at the longest size )

then resize the photo to a maximum of 500 pixels with decent quality but not too big to make downloading too long

also to create a thumbnail of a maximum of 80 pixels

and then read it into a table field seperated by a comma

Can somebody please assist me?

Thank you very much for your time!

    how to upload a file:
    http://hu.php.net/manual/en/function.move-uploaded-file.php

    How to resize an image:
    http://hu.php.net/manual/en/function.imagecopyresized.php

    How to build a query to insert uploaded file to a mysql table:
    http://phpcode.hu/teszt/table_code/

    Notice that, if you store the file names in a comma delimitered list in a single field, your database could have limitations in table connections, search, edit, and these tables said to be poor designed database model.

      Write a Reply...