blob: ec416144a43cade34158604ef848002640c35399 [file] [log] [blame]
<?php
$db = ezcDbInstance::get();
$q = $db->createSelectQuery();
$e = $q->expr; // fetch the expression object
$q->select( '*' )->from( 'quotes' )
->where( $e->eq( 'author', $q->bindValue( 'Robert Foster' ) ) )
->orderBy( 'quote' )
->limit( 10, 0 );
$stmt = $q->prepare();
$stmt->execute();
?>