Ok guys, I am having a MAJOR brain block, and for some reason, I can't seem to get this?
Could you tell me how to select each item of my database one by one and display them: here is my code, and you will see the reasoning:
$sql = "SELECT * FROM useronline";
$result=mysql_query($sql);
$numrows = mysql_num_rows($result);
echo("&users=");
for($i=0;$i<$numrows;$i++) {
$result = mysql_query("SELECT * FROM useronline ORDER by timestamp desc limit $i,1");
while ( $row = mysql_fetch_array($result, MYSQL_ASSOC) Or die(mysql_error()) ) {
echo("<u>".$row['Username']."</u> ");
}
}
See, I need to put the <u> in between each seperate item, but it is only showing the first item, not the second one(only showing one username, instead of all the ones that should be on there)
Thanks alot guys