I have a while loop that works exactly the same on three different pages. To make it easier to alter it, I put it in it's own php file, gmldLoop. However, after doing so and including gmldLoop where I'd like it to run on the file, g, it doesn't work. I'm not sure why this is happening. The code is exactly copied and pasted in both files, so I know it's not a typo. I have a while loop that works exactly the same