Can somebody please tell me what's wrong with this? I've inserted all the php calls correctly and my gallery is not showing up. Thanks in advance for the help.
You need a .php file extension for PHP to run, not .html (unless your server is set up to parse .html files as .php files). Rename 'gallery.html' to 'gallery.php' and it should work.