Regarding serendipity['dbPreifx']
Posted: Mon Sep 11, 2006 8:28 am
hi,
when a query is executed how {$serendipity['dbPreifx']} is parsed and where exactly its value is replaced?
Also in serendipity_config_local.inc.php
$serendipity['dbPrefix'] is set to 'serendipity_'; from where is this value fetched?
In one of the customised query in userdefined function we used
serendipity_db_query("SELECT authorid FROM serendipity_".$table);
$table is passed as parameter to function, this was working fine.
but when we changed it to
serendipity_db_query("SELECT authorid FROM {$serendipity['dbPrefix']}" . $table); we are facing problems like in the left navigation the links are displayed like ADMIN_FRONTPAGE ,NEW_ENTRY , EDIT_ENTRIES and likewise for all the links.
why is this happening?
pls help me out.
thanks.
manoj
when a query is executed how {$serendipity['dbPreifx']} is parsed and where exactly its value is replaced?
Also in serendipity_config_local.inc.php
$serendipity['dbPrefix'] is set to 'serendipity_'; from where is this value fetched?
In one of the customised query in userdefined function we used
serendipity_db_query("SELECT authorid FROM serendipity_".$table);
$table is passed as parameter to function, this was working fine.
but when we changed it to
serendipity_db_query("SELECT authorid FROM {$serendipity['dbPrefix']}" . $table); we are facing problems like in the left navigation the links are displayed like ADMIN_FRONTPAGE ,NEW_ENTRY , EDIT_ENTRIES and likewise for all the links.
why is this happening?
pls help me out.
thanks.
manoj