[TYPO3-dev] A way to detect if table has a certain field

Tapio Markula tapio.markula at xetpoint.fi
Thu Sep 27 19:05:45 CEST 2007


Georg Ringer kirjoitti:
> Tapio Markula wrote:
>> what Typo3 call I could use?
>> I mean something like
>> $GLOBALS['TYPO3_DB']->exec_SELECTquery('COUNT(*)',$table,'pid='.$id.' 
>> AND deleted=0','', '', '');
> 
> what about
> $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$table,'');


$row = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*',$table,'');
$row=$GLOBALS['TYPO3_DB']->sql_fetch_row($row);

row is $row[0] etc - not named keys.




More information about the TYPO3-dev mailing list