i want to create a image gallery,i want to insert multiple files at a time,that should be stored in a database,and i want to display that in my profile.php as a gallery.

And I want to earn 3.000$ every day and of course ... world peace . Is there any question ?

Look into gallery3. It is a free application written using php and mysql which will do everything you are wanting and more.

http://galleryproject.org/

iam a begginer to php.i need simple code for gallery.please help me out