Topic: Query without prefix
Hi,
I hava a problem with query.
I modify file header.php
In config I have prefix set to 'forum_'
$query = array(
'SELECT' => 'id, link',
'FROM' => 'company',
'WHERE' => 'user_id='.$forum_user['id']
);
// $query['PARAMS']['NO_PREFIX'] = 1;
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
if (!$forum_db->num_rows($result))
$companyPresentation = false;
else
$companyPresentation = $forum_db->fetch_assoc($result);
I get message
An error was encountered
The error occurred on line 180 in /home2/campecom/public_html/demo.goldproject.pl/forum/header.php
Database reported: Table 'forum_company' doesn't exist (Errno: 1146).
I need query to table 'company' with no prefix.
When I use '$query['PARAMS']['NO_PREFIX'] = 1;' it works, but other standard queries no work properly.
The question is , how can I sent query with no prefix.