if(isset($_GET['id'])){ $id = t3lib_div::_GET('id'); }
if(isset($_GET['category']) && isset($_GET['limit'])){ $category = t3lib_div::_GET('category'); $limit = t3lib_div::_GET('limit'); $query = "SELECT * FROM products WHERE category='$category' LIMIT $limit"; }The t3lib_div::_GET function is part of the TYPO3 core package.