<?php
$host = "localhost";
$user = "*****";
$pass = "****7";
$db_name = "9***a";
$connect = mysql_connect($host, $user, $pass) or die("Could Not Connect To <b>\"$host\"</b>");
$select = mysql_select_db($db_name, $connect) or die("Could Not Select Database: <b>\"$db_name\"</b>");
function look(){
$query = mysql_query( "SELECT t.tid, t.title, t.start_date, t.last_post, t.posts, t.forum_id, t.last_poster_id, t.last_poster_name, t.starter_name, f.name FROM ibf_topics t, ibf_forums f WHERE t.approved='1' AND t.forum_id = f.id AND f.id IN (4,5,7) AND t.moved_to IS NULL ORDER BY t.tid DESC LIMIT 0,50");
echo"
<table width='100%' border='0' cellspacing='0' cellpadding='5'>";
while( $i = mysql_fetch_array($query)) {
echo "<tr>
<td class='ipb3_right' id='bottom'>· <a href='forum/?showtopic={$i['tid']}&view=getnewpost'><b>{$i['title']}</b></a>
</td>
</tr>
";
}
echo"</table>";
}
look();
?>