Skip to main content

Simple PHP & MYSQL Photo Gallery


(Help: Please help me solve the bug and contact me.)

This program is made of php and mysql. This is a simple Photo Gallery, photos will be uploaded in a directory folder called photos. This code was developed by Mayank Gandhi. You can view his article here: .But when i run the php files, all the executions has an error, which i don't know how to debug. though the photos i uploaded and view the images was successful. I'm a beginner for php language programmer. Please contact at [email protected] or you can write me a comment for this article. Thanks in advance.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byIT7900142 (not verified)on Fri, 07/06/2012 - 17:34

hello there, your code seems to have uninitialized variables, some of the uri parameters are not even referenced properly. to solve this, you must take in to consideration the scope and declaration of your variables.

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.