Bug #19782 ยป bug_10086.diff
t3lib/class.t3lib_fullsearch.php (working copy) | ||
---|---|---|
$qCount = $GLOBALS['TYPO3_DB']->SELECTquery('count(*)', $qGen->table, $qString.t3lib_BEfunc::deleteClause($qGen->table));
|
||
$qSelect = $qGen->getSelectQuery($qString);
|
||
$res = @$GLOBALS['TYPO3_DB']->sql(TYPO3_db,$qCount);
|
||
$res = @$GLOBALS['TYPO3_DB']->sql_query($qCount);
|
||
if (!$GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$dA = array();
|
||
$dA['t2_data'] = serialize(array(
|
||
... | ... | |
$output.= $GLOBALS['SOBE']->doc->section('SQL query',$this->tableWrap(htmlspecialchars($qExplain)),0,1);
|
||
}
|
||
$res = @$GLOBALS['TYPO3_DB']->sql(TYPO3_db,$qExplain);
|
||
$res = @$GLOBALS['TYPO3_DB']->sql_query($qExplain);
|
||
if ($GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$out.='<BR><strong>Error:</strong><BR><font color="red"><strong>'.$GLOBALS['TYPO3_DB']->sql_error().'</strong></font>';
|
||
$output.= $GLOBALS['SOBE']->doc->section('SQL error',$out,0,1);
|
typo3/sysext/cms/tslib/media/scripts/example_callfunction.php (working copy) | ||
---|---|---|
* @access private
|
||
*/
|
||
function selectThem($query) {
|
||
$res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db,$query);
|
||
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
|
||
$output=array();
|
||
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
|
||
$output[]=$row['header'];
|
typo3/sysext/sys_action/class.tx_sysaction.php (working copy) | ||
---|---|---|
$actionContent="";
|
||
// debug($sql_query);
|
||
$type = $sql_query["qC"]["search_query_makeQuery"];
|
||
$res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db,$sql_query["qSelect"]);
|
||
$res = $GLOBALS['TYPO3_DB']->sql_query($sql_query["qSelect"]);
|
||
if (!$GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$fullsearch->formW=48;
|
||
$cP=$fullsearch->getQueryResultCode($type,$res,$sql_query["qC"]["queryTable"]);
|