<?php
require_once ‘../conn.php‘;
@$sql = "select * from blogarticle";
@$results = mysql_query($sql);
while (@$row = mysql_fetch_assoc($results)) {
echo <<<s
<tr>
<td>{$row[‘title‘]}</td>
<td>{$row[‘content‘]}</td>
<td>{$row[‘class‘]}</td>
<td>{$row[‘author‘]}</td>
<td>{$row[‘date‘]}</td>
<td>
<a href="../logic/article/delete.php?ID={$row[‘ID‘]}">删除 </a>|
<a href="../logic/article/update.php?ID={$row[‘ID‘]}">修改</a>
</td>
</tr>
s;
}
mysql_close();
?>