<?php
mysql_select_db("mgshuheb") or die("No such database");
$str = "SELECT * FROM posts ORDER BY id DESC";
$rs = mysql_query($str);
while($row = mysql_fetch_array($rs)) {
echo '<span class="name">' . $row["name"] . '</span>'."<br />";
echo $row["post"] . "<br />";
echo $row["time"] . "<br /><br />";
}
?>
这是我目前所拥有的。当我输入它时,SELECT TOP 50 * FROM posts ORDER BY id DESC;
它不断出现错误。