歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 27, 2024, 09:17:49 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  外掛程式  |  請問有沒這種plugin « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 請問有沒這種plugin  (閱讀 6134 次)
pcm
新手見習
*
文章: 12


檢視個人資料
« 於: 十月 17, 2006, 05:43:10 下午 »

可以外部html 使用iframe 來顯示最新post 的plugin?

我外大陸, 國外網站找了很久也沒有發現

我已很焦急了...可唔可以幫一幫我呢?


另外.. 我自己也嘗試了從外部直接連到數據機庫來實現" 最新文章"的block  script 如下:
程式碼:
	$host = 'localhost';
    $user = 'root';
    $password = '';
    $mydatabase = 'blog';
    $table1 = 'blog_articles_text';
//$table3 = 'blog_articles';
$table2 = 'blog_blogs';
    $connect = mysql_connect($host, $user, $password);
function aid($artid){
mysql_select_db($mydatabase);
if($resultid2=mysql_query($listall2, $connect)){
$listall2="SELECT blog_id  from blog_articles where id=$gaid order by date";
while( $row=mysql_fetch_row($resultid2)){
$artid = "&blogId=".$row["blog_id"]."";
}
}
return $artid;
}
if(!$connect) {
      die("Cannot connect to $host using $user");
    } else {
     mysql_select_db($mydatabase);



     $listall = "SELECT DISTINCT* from blog_articles_text order by article_id desc";
  //$listall2 = "SELECT DISTINCT blogId from blog_articles order by date desc";
  if($resultid=mysql_query($listall, $connect)){
while( $row=mysql_fetch_array($resultid)){
$text="".$row["normalized_text"]."";
$gaid = "".$row["article_id"]."";
print "<tr><td><a href='../blog/index.php?op=ViewArticle&articleId=$gaid".aid($artid)."' target=_blank>".$row["topic"]."</a></td></tr><tr><td>".cutStr($text)."</td></tr>";

}
    //}
     } mysql_close($connect);
     }

但output出來的hyperlink 能夠對應article id 但偏偏不能夠對應blog id ><"
我想應該是sql statement 的問題,,,
各位有沒好的修改建議...謝了
已記錄
頁: [1]
LifeType 中文開發論壇  |  開發  |  外掛程式  |  請問有沒這種plugin « 上篇主題 下篇主題 »
    前往: