ptmuldoon
02-20-2008, 09:27 PM
I'm changing the names of my table to work with a prefix, and in my config file I have the following:
$mysql_prefix = 'prefix_';
And in my code, I have query's such as
$sql1 = "SELECT * FROM " . $mysql_prefix . "game_info";
However, on some of my pages/scripts, the prefix is not working. I'm not sure, but I believe it may be scripts that are being called in using require(mypage.php)
I wish i could provide more info, but I'm not sure even what else to mention or why the prefix works on some pages/scripts and not others.
$mysql_prefix = 'prefix_';
And in my code, I have query's such as
$sql1 = "SELECT * FROM " . $mysql_prefix . "game_info";
However, on some of my pages/scripts, the prefix is not working. I'm not sure, but I believe it may be scripts that are being called in using require(mypage.php)
I wish i could provide more info, but I'm not sure even what else to mention or why the prefix works on some pages/scripts and not others.