<?
$lnk = mysql_connect('localhost', 'root', '') or die ('Not connected : ' . mysql_error());


mysql_select_db('phpbb205', $lnk) or die ('Can\'t use foo : ' . mysql_error());

$query = "SELECT * FROM phpbb_forums";

$result = mysql_query($query);
//$row    = mysql_num_rows($result) ;
while($result_row = mysql_fetch_row($result))
{
 echo $result_row[2].$result_row[3];
}
?>

posted on 2005-06-09 17:06  fghr  阅读(1670)  评论(0编辑  收藏  举报