Advertisement
Guest User

Untitled

a guest
Sep 20th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1.     $start = 0;
  2.     $perpage = 10;
  3.         $sth = $dbh->prepare( 'SELECT * FROM `post` LIMIT ?,?' );
  4.        
  5.             $sth->bindValue(1, $start, PDO::PARAM_INT);
  6.             $sth->bindValue(2, $perpage, PDO::PARAM_INT);
  7.             $sth->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement