<?php $a1 = t3lib_div::_POST('a1'); $a2 = t3lib_div::_POST('a2'); $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','my_table','a1='.$a1);