Can't get this silly little code to echo my users online. I KNOW their are members in the USERid but they're still not echoing...
<?
require('db_cnx.php');
$result = @mysql_query("SELECT * FROM templates");
$myrow = mysql_fetch_array($result);
$fontString = "<font face=$myrow[string_font] size=$myrow[string_size] color=$myrow[string_color]>";
$fontString2 = "<font face=$myrow[string2_font] size=$myrow[string2_size] color=$myrow[string2_color]>";
$tableColor = "$myrow[tablebg]";
echo("
<body bgcolor=#ffffff>
$fontString2 <center>Online Users</center><br><hr width=95% color=#666666");
$sql = "SELECT * FROM online_user";
mysql_query($sql);
while($row = mysql_fetch_array($result)) {
extract($row);
$name = '$row[USERid]';
echo("$fontString • $name<br>");
}
echo("
</body>
</html>
");
?>