The following code:
$sql = 'SELECT user_id FROM ' . TC_DATA_NEW_TABLE_NAME . 'subscribe
WHERE ' .
TC_UTIL::parentClause($this->getType(), TC_DATA_NEW_TABLE_PREFIX .
'_type');
$res = $this->_db->query($sql, DB_FETCHMODE_ASSOC); if
(DB::isError($res)) { die($res->getMessage() . ' [' .
$res->getUserInfo() . '] - ' .$res->getDebugInfo() . ' in: ' .
__FILE__ . ' at line nr. ' . __LINE__); }
Generates the following error message:
DB Error: mismatch [SELECT user_id FROM data_newsubscribe WHERE
(tc_datanew_type='' OR tc_datanew_type LIKE 'ligfiets' OR
tc_datanew_type LIKE 'ligfiets.links' OR tc_datanew_type LIKE
'ligfiets.links.thuispagina' )] - SELECT user_id FROM
data_newsubscribe WHERE (tc_datanew_type='' OR tc_datanew_type LIKE
'ligfiets' OR tc_datanew_type LIKE 'ligfiets.links' OR tc_datanew_type
LIKE 'ligfiets.links.thuispagina' ) in:
c:\data\www\be\technetium\objects\www\include\TC_D ATA_NEW_MAIL.php at
line nr. 31
Seaching in google gives me lots of the same errormessages, especially
on pages with wiki. The other pages point in the direction of place
holders. In a german newsgroup this error is also discussed (also with
reference to place holders).
I don't use placeholders in the query, zo I don't have any idea how to
solve this problem. Can anybody of you give me please some
suggestions.
Thanks,
Toni