My website shows the number of active users with the possibillity to instant message them.
All works well, except for the layout of some things i can use some help.
In the image that is provided you can see how members are displayed at the moment.
On this link you can see how it was supposed to be ;-)
http://nl.rendez-vous.be/scripts/rv_benl/GetActiveUsers.htm?random=13165
Can someone change my code into something that looks the same??
Thanks.
<table width="100%" border="0" cellspacing="4" cellpadding="4" bgcolor="#FFFFFF">
<td class="title"><img src="images/forum.gif"></td></tr>
<tr>
<table width="95%" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#FFF7EC">
<tr>
<td height="16" bgcolor="#CF0808"><b><font color="#FFFFFF">Pop-ups</font></b></td>
</tr>
<tr>
<td height="61" bgcolor="#FFFFFF"><p>Op deze pagina worden alle gebruikers
weergegeven die momenteel ingelogd zijn op de Mon-AMOUR site.<br>
Om een pop-up te versturen naar deze persoon, volstaat het om achter
zijn naam op pop-up te klikken.<br>
<font color="#FF0000">Let op: Het is noodzakelijk dat u over een (gratis)geldig
profiel beschikt indien u van deze dienst gebruik wenst te maken.</font><br>
</p></td>
</tr>
<tr>
<td height="2" bgcolor="CF0808"><p align="left"></p></td>
</tr>
<tr>
<td>
<?
$host = "";
$user = "";
$pass = "";
$db = mysql_connect($host,$user,$pass) or die ("Database connection failed");
mysql_select_db("",$db) or die ("couldn't select database");
echo "<table><tr><td></td><td></td><td></td><td></td></tr>";
$members_count = ("SELECT id FROM dt_members");
$approved_profiles_count = "SELECT id FROM dt_profile WHERE status='1'";
$gast =0;
$mem = 0;
$mem2 = 0;
$select = "SELECT STATUS FROM dt_usersonline";
$select = "SELECT * FROM dt_usersonline";
$query = mysql_query($select);
while($list = mysql_fetch_object($query)){
$naam = $list ->login;
if ($naam != ""){ $gast++;
?>
<?
$naam2 = "31"; $birth_year = "Deze persoon beschikt niet over een eigen profiel!!!" ; $city = ""; $looking_for = "";$mem++;
$select1 = "SELECT * FROM dt_profile where name = '$naam'";
$query1 = mysql_query($select1)or die(mysql_error());
while($list = mysql_fetch_object($query1)){
$naam2 = $list->id;
$birth_year = (2003 - $list->birth_year );
$city = $list->city;
$state = $list->state;
$looking_for = $list->looking_for;
$age_from = $list->age_from;
$age_to = $list->age_to;
}
echo "<tr><td></td><td>";
echo "<a href='index.php?page=view_profile&id=$naam2' target=_blank >$naam</a></td><td>";
echo "$birth_year - $city - Zoekt een $looking_for tussen $age_from en $age_to - ";
echo "<a href=\"msg.php?ac=sent&naam=$naam&van=$aAuth\" target=_blank > Popup </a></td><td>";
echo "</td></tr>\n";
}
}
echo "</table>";
echo "<br>Momenteel zijn er $mem leden en $gast gasten online\n";
?>
<tr>
<td height="16" bgcolor="CF0808"><p align="left"></p></td>
</tr>
</table>