as you are new to php and mysql environment. it would take some time to get you understand the php and mysql. but i think you can do it.
And as according to your current requirement you can do that by using the simple html and java script. there is no need of mysql.
you can search for free templetes and free java script related to photos.
mail me at
or visit my official site