Nieuw lid |
|
Hallo,
ik gebruik volgende code om de laatste nieuwe topic onderwerpen te laten verschijnen op mijn site.Maar hoe laat ik de links openen in een nieuw venster?
<? include_once ("forum/config.php");
$mysql_connection = mysql_connect ($dbhost, $dbuser, $dbpasswd) or die ("Connection failed");
mysql_select_db ($dbname) or die ("Selecting database failed");
$query = "SELECT topic_id,topic_title FROM phpbb_topics order by topic_id desc limit 10 ";
$res = mysql_query($query);
while($data = @mysql_fetch_array($res))
{
echo " <a href=\"forum/viewtopic.php?t=".$data["topic_id"]."\">".$data['topic_title']."</a><br>";
}
?>
<? include_once ("forum/config.php"); $mysql_connection = mysql_connect ($dbhost, $dbuser, $dbpasswd) or die ("Connection failed"); $query = "SELECT topic_id,topic_title FROM phpbb_topics order by topic_id desc limit 10 "; { echo " <a href=\"forum/viewtopic.php?t=".$data["topic_id"]."\">".$data['topic_title']."</a><br>"; } ?>
Citaat: Rens edit:
Codetags gebruiken!
|