Could you add the error display code to the top of the page that you are currently stuck on?
At some point in my install I had a problem with 'free MySql results' code at the bottom of the page in question (which I deleted in order to continue).
Please note that I am an imbecile when it comes to PHP, (it all looks as if it's in code to me), and that Jason will undoubtedly have a better solution. I only post this as a) it worked for me, and b) your gallery isn't working anyway.