Mysql
 sql >> Database >  >> RDS >> Mysql

PHP, query limite SQL per variabile php

Hai provato a fare

$result = mysqli_query($conn,"SELECT * FROM comments ORDER BY id DESC limit '$sqlshowvalue'");

a

$result = mysqli_query($conn,"SELECT * FROM comments ORDER BY id DESC limit ".$sqlshowvalue);