enter image description here我必须显示下5个用户,然后是25个在登录用户之后加入的用户...这将返回所有用户
我试图回显用户的ID,但这没有用
<?php
$query = $con->query("SELECT * FROM User WHERE id<$userid ORDER by id ASC LIMIT 5");
if ($result = $query) {
/* fetch associative array */
while($row = $query->fetch_array()){
echo "<td>".$row['email']."</td>";
echo "</tr>";
}
}
?>