请问你如何做的,希望具体点,你的代码我在0.32无法运行,请你给出完整代码!
我給的應該很完整了
我把整段貼出來吧
<html>
<body>
<?
// mySQL 連線資訊
include_once("./config/config.properties.php");
$plog['uri'] = "http://你的部落格網址/index.php?blogId=";
// 連結 mySQL 資料庫
@mysql_connect($config["db_host"], $config["db_username"], $config["db_password"]) or die("Connect: ".mysql_error());
@mysql_select_db($config["db_database"]) or die("Select DB : ".mysql_error());
?>
<?
$result_blog = @mysql_query("select * from plog_blogs") or die("Query: ".mysql_error());
while($row_blog = @mysql_fetch_array($result_blog, MYSQL_ASSOC)) {
?>
<option value="<?echo $row_blog['id'];?>"><?echo $row_blog['blog'];?></option>
<?
}
$result_blog = @mysql_query("select * from plog_blogs") or die("Query: ".mysql_error());
while($row_blog = @mysql_fetch_array($result_blog, MYSQL_ASSOC)) {
$result_content = @mysql_query("select * from plog_articles where blog_id=".$row_blog['id']." order by date desc limit 0, 1") or die("Query: ".mysql_error());
$row_content = @mysql_fetch_array($result_content, MYSQL_ASSOC);
?>
<tr>
<td>
<a name="<?echo $row_blog['id'];?>">
<td align="center"><img src="images/<?echo $row_blog['id'];?>.jpg" width="100" height="100"></td>
<td align="left"><a href="<?echo $plog['uri'].$row_blog['id'];?>"><?echo $row_blog['blog'];?></a></td>
<td height="20" align="left" valign="top"><b><?echo $row_content['topic'];?></b></td>
<?
}
?>
</body>
</html>
希望能夠拋磚引玉
進而找到解決方法