Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Działa
- $result = $pdo -> prepare('SELECT * FROM `tv_stations` LIMIT '.$_GET['jtStartIndex'].', '.$_GET['jtPageSize'].'');
- $result -> execute();
- $rows = $result->fetchAll(PDO::FETCH_ASSOC);
- Nie działa
- $result = $pdo -> prepare('SELECT * FROM `tv_stations` LIMIT :from, :num');
- $result -> bindValue(':from', $_GET['jtStartIndex']);
- $result -> bindValue(':num', $_GET['jtPageSize']);
- $result -> execute();
- $rows = $result->fetchAll(PDO::FETCH_ASSOC);
Advertisement
Add Comment
Please, Sign In to add comment