zinco
1-12-05, 03:41 PM
Found this at mx portal site: http://www.mx-system.com/forum/viewtopic.php?t=5337
Seems its gonna be a problem with any scripts that have the word "mod" in them.
http://dev.mysql.com/doc/mysql/en/Reserved_words.html
This is what I did for Mx Portal with PHPBB2. The same idea applies to any php scripts that uses SQL and has either "mod" or "mod.something" in the sql block. Mod is a reserved word in MySql 4.1 now and apparently was not in 4.0.
__________________________________________________ _____________________
Posted: 08 Oct 2004 09:49 Post subject: Reply with quote
Nobody's care so i've debugged myself Wink
For those who have the same problem (i'm sure there are ...), you have to modify the following (maybe more but for the moment everything seems working) :
index.php, lines 111 & 114
mx_menu_nav.php, lines 231 & 233
mx_multiple_blocks.php, lines 50 & 52
admin/admin_mx_module.php, lines 233 & 234
Change the mx_module table alias in query from mod to mod2 for example.
example on index.php :
Quote:
$sql = "SELECT blk.block_id, blk.auth_view_group, blk.auth_edit_group, bct.column_id, module_path, function_file, auth_view
FROM " . COLUMN_BLOCK_TABLE . " bct,
" . BLOCK_TABLE . " blk,
" . FUNCTION_TABLE . " fnc,
" . MODULE_TABLE . " mod2
WHERE blk.function_id = fnc.function_id
AND blk.block_id = bct.block_id
AND fnc.module_id = mod2.module_id
ORDER BY column_id, block_order";
+
_________________
can people hear shouting in cyberspace ?
http://www.legeek.tk
Base de données d'images inspi JDR :
http://legeek.free.fr/inspic
Seems its gonna be a problem with any scripts that have the word "mod" in them.
http://dev.mysql.com/doc/mysql/en/Reserved_words.html
This is what I did for Mx Portal with PHPBB2. The same idea applies to any php scripts that uses SQL and has either "mod" or "mod.something" in the sql block. Mod is a reserved word in MySql 4.1 now and apparently was not in 4.0.
__________________________________________________ _____________________
Posted: 08 Oct 2004 09:49 Post subject: Reply with quote
Nobody's care so i've debugged myself Wink
For those who have the same problem (i'm sure there are ...), you have to modify the following (maybe more but for the moment everything seems working) :
index.php, lines 111 & 114
mx_menu_nav.php, lines 231 & 233
mx_multiple_blocks.php, lines 50 & 52
admin/admin_mx_module.php, lines 233 & 234
Change the mx_module table alias in query from mod to mod2 for example.
example on index.php :
Quote:
$sql = "SELECT blk.block_id, blk.auth_view_group, blk.auth_edit_group, bct.column_id, module_path, function_file, auth_view
FROM " . COLUMN_BLOCK_TABLE . " bct,
" . BLOCK_TABLE . " blk,
" . FUNCTION_TABLE . " fnc,
" . MODULE_TABLE . " mod2
WHERE blk.function_id = fnc.function_id
AND blk.block_id = bct.block_id
AND fnc.module_id = mod2.module_id
ORDER BY column_id, block_order";
+
_________________
can people hear shouting in cyberspace ?
http://www.legeek.tk
Base de données d'images inspi JDR :
http://legeek.free.fr/inspic