liamallan
03-03-2010, 06:47 PM
i have recently been working on a login/registration script, and have inserted an option to view currently online users. each online user is inserted into a table which works fine:
<table width="200" border="1" cellspacing="0" cellpadding="3">
<tr>
<td align="center"><strong><u>Online Users</u></strong></td>
</tr>
<?php
while($rows=mysql_fetch_array($query)){
?>
<tr>
<td><? echo $rows['username']; ?>
<div align="center"></div></td>
</tr>
<?php
}
?>
</table>
i want to try and make every different username linked to the profile page of the corresponding username. the profile page url will be like http://www.shiftysplayground.co.cc/userinfo.php?user='username'.
just wondering if anyone can help me on this? thanx in advance!
<table width="200" border="1" cellspacing="0" cellpadding="3">
<tr>
<td align="center"><strong><u>Online Users</u></strong></td>
</tr>
<?php
while($rows=mysql_fetch_array($query)){
?>
<tr>
<td><? echo $rows['username']; ?>
<div align="center"></div></td>
</tr>
<?php
}
?>
</table>
i want to try and make every different username linked to the profile page of the corresponding username. the profile page url will be like http://www.shiftysplayground.co.cc/userinfo.php?user='username'.
just wondering if anyone can help me on this? thanx in advance!