Does it matter where I query the database from or is there a function that does it that can be modified? In earlier instances of the code that I'm modifying has the same if statement and it used to work at one time, but I'm guessing someone modified the query and broke the if statement? Hence the reason it doesn't work anymore? Now I've been told to change it and still am young in my PHP and Smarty days - but eager to learn.
