我想显示来自 mysql 数据库的数据,例如 [Youtube][1] 评论 10 条评论“显示更多 10”链接......我怎么能得到这个?
那是我的代码
$entities = mysql_query("SELECT timestamp
, username
, message
FROM comments
WHERE page_name
= '$message_page' ORDER BY timestamp
DESC");
if (mysql_num_rows($entities) ==0) {
echo '<strong>No comment, yet.</strong>';
} else {
while ($entities_row = mysql_fetch_assoc($entities)) {
$entities_timestamp = $entities_row['timestamp'];
$entities_username = $entities_row['username'];
$entities_message = $entities_row['message'];
}