- Home
- Inquire
- Enhance
- Understand
- Download
- Discover
php:
protected function compile() { if(!$_GET['seite']) { $page = 1; } else { $page = $_GET['seite']; } $limit = 1; echo $min = $limit * $page; echo $max = ($limit * $page) + 1; $objData = $this->Database->execute("SELECT * FROM test_table LIMIT ".$min.",".$max); $arrData = array(); while ($objData->next()) { $arrData[] = array ( 'name' => $objData->name ); } print_r($arrData); return $this->Template->datas = $arrData; }
php:
$objData = $this->Database->prepare("SELECT * FROM test_table")->limit($min,$max)->execute();
Support the project financially by donating money via PayPal.
Alternatively you can support the development of Contao by buying a Contao Live Update ID or a front end template.
With the release of version 2.9.RC1 on June 6th, 2010, the project has been renamed to "Contao Open Source CMS". Everything else remains the same.
The project website is now available at www.contao.org. Please update your links and bookmarks.
