0
외부 데이터베이스의 데이터 피드를 포럼 섹션의 사이드 바에 표시하고 싶습니다.VBulletin 4 포럼에 외부 데이터베이스 데이터를 표시하는 방법 Custom PHP Block?
PHP 블록 코드 :
$host = 'db.123.net';
$dbUser = 'db49';
$dbPass = 'iReVbY';
$db = 'db6578h8';
mysql_connect("$host", "$dbUser", "$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());
ob_start();
$result = mysql_query("SELECT id, title from abc") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
print"<center>";
print "<a href=\"http://abc.com/?id=" . $row['id'] . "\"></a>";
print "</center>";
}
$output .= ob_get_contents();
return $output;
ob_end_clean();
어떻게 사이드 바 (포럼 부문)에서 PHP 블록에 표시 할 배열을 반환합니까?
도와주세요. 고맙습니다 ...