Guest User

Untitled

a guest
Jul 3rd, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. Działa
  2.  
  3. $result = $pdo -> prepare('SELECT * FROM `tv_stations` LIMIT '.$_GET['jtStartIndex'].', '.$_GET['jtPageSize'].'');
  4. $result -> execute();
  5. $rows = $result->fetchAll(PDO::FETCH_ASSOC);
  6.  
  7.  
  8. Nie działa
  9.  
  10. $result = $pdo -> prepare('SELECT * FROM `tv_stations` LIMIT :from, :num');
  11. $result -> bindValue(':from', $_GET['jtStartIndex']);
  12. $result -> bindValue(':num', $_GET['jtPageSize']);
  13. $result -> execute();
  14. $rows = $result->fetchAll(PDO::FETCH_ASSOC);
Advertisement
Add Comment
Please, Sign In to add comment