Quote:
Originally Posted by assassingod
iceman-x, Only registered users should be able to post tutorials
JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed
|
That is not the issue here, the error is calling global.php before you define $templatesused. This means everytime you call get_template(); in the script it runs a query.
So instead of:
PHP Code:
require_once('./global.php');
if ($do = 'moo')
{
$templatesused = 'blah,blah3,blah999';
}
Use:
PHP Code:
if ($do = 'bahh')
{
$templatesused = 'sheep,sheepy';
require_once('./global.php');
// your code here
}