Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- isset($_GET['page']) ? $pageActuelle=intval($_GET['page']) : $pageActuelle=1;
- $quote = $bdd->prepare("SELECT id FROM news ORDER BY id DESC LIMIT ?,10");
- $quote->execute(array(($pageActuelle-1)*10));
- foreach ($quote->fetchAll() as $q)
- {
- getNews($q['id']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement