I didn't create the script. It's a PHP script that normally works on webpages. Those two includes are to the config file which then means that the codes for listing 2 are shown.
Normal PHP code like the snippet I'm trying to use doesn't work in a template. It just doesn't appear. From searching this board that appears to be a VB thing that it stops normal PHP code from working. I don't know how to get it to work within VB.
Thanks for your help