Database operations - Limit and offset.php 206 Bytes
Newer Older
doctrine's avatar
doctrine committed
1
<?php
2
$sess = Doctrine_Manager::getInstance()->openConnection(new PDO("dsn","username","password"));
doctrine's avatar
doctrine committed
3 4 5 6 7

// select first ten rows starting from the row 20

$sess->select("select * from user",10,20);
?>