Topic: Problem running mysql queries via pun_include

I'm having trouble trying to run a php file that runs mysql queries (in main.tpl) with pun_include, get the following error:

Fatal error: Cannot redeclare check_cookie() (previously declared in C:\Dev\Website\forums\include\functions.php:28) in C:\Dev\Website\forums\include\functions.php on line 112

The php file works fine on my main page..

Does anyone know why this might be? smile

Thanks

Re: Problem running mysql queries via pun_include

Are you including include/common.php in the file in include/user? If so, that's the issue: PunBB already loads include/common.php.

Re: Problem running mysql queries via pun_include

That was it, thanks!