Code:
$game = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid ");
I have no problem with any other area of the arcade. I can even change the game categories around in the "Game Categories" link in the admincp "Add Game Category" works too.
BUT when i click on the "game settings" in the admincp I get this ERROR
I have the correct names these are just x'd out.
xxxxxx = my prefix
xxxxxx_xxxxxx = database name
Database error in vBulletin 3.0.x:
Invalid SQL: SELECT * FROM xxxxxx_games A, gamescat B WHERE A.categoryID = B.categoryID ORDER BY gameid
mysql error: Table 'xxxxxx_xxxxxxx.gamescat' doesn't exist
mysql error number: 1146
Date: Saturday 05th of March 2005 03:27:29 PM
Script:
http://www.xxxxxx.com/forum/admincp/...n.php?do=games
Referer:
http://www.xxxxxx.com/forum/admincp/index.php?do=nav
Username: Me
IP Address: xxx.xxx.xxx.xxx
do i need to modify that line of code?
There shouldn't be a . between the prefix and the table name. This isn't the only hack that has issues w/ prefixes. I wish someone could explain how to prevent issues like this.