SQL查询无效

时间:2015-11-18 03:02:56

标签: php mysql sql mysqli

即使所有“情况”都正确并且在数据库中,此SQL查询也不会显示帖子。 查询 - $sql = "SELECT * FROM posts WHERE like BETWEEN 5 AND 25 AND bp='0' ORDER BY id DESC LIMIT 15 ";

为什么这不起作用?我该如何解决?

1 个答案:

答案 0 :(得分:2)

RewriteEngine on RewriteCond %{THE_REQUEST} /search-menu\?r_id=([^&]+)&name=([^\s]+) [NC] RewriteRule ^ %1/%2? [NC,L,R] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^search-menu/([^/]+)/([^/]+)/?$ search-menu.php?r_id=$1&name=$2 [NC,L] 是一个保留字,所以你需要逃避它:

like