How to apply bindValue method in LIMIT clause?

后端 未结 10 2426
旧巷少年郎
旧巷少年郎 2020-11-21 04:28

Here is a snapshot of my code:

$fetchPictures = $PDO->prepare(\"SELECT * 
    FROM pictures 
    WHERE album = :albumId 
    ORDER BY id ASC 
    LIMIT :s         


        
10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-21 05:04

    bindValue offset and limit using PDO::PARAM_INT and it will work

提交回复
热议问题