Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $start = 0;
- $perpage = 10;
- $sth = $dbh->prepare( 'SELECT * FROM `post` LIMIT ?,?' );
- $sth->bindValue(1, $start, PDO::PARAM_INT);
- $sth->bindValue(2, $perpage, PDO::PARAM_INT);
- $sth->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement