I've made a function that builds a table with data fetched from a Microsoft SQL server database. When I define and call this function in the same doc it works without problems.
BUT (and this is weird) when I define the function in a separate doc that I include (using include())into the "main doc" from which I call this function, IT DOESN'T WORK.
It seems as if the MS SQL result is valid but when I use the mssql_fetch_array() function I get no data at all from the result, still I get no error message!
What could be the problem? Please help I'm running mad over this... Arrghh!!!