Jump to content

[SOLVED] echo $row['famel....


nathanmaxsonadil

Recommended Posts

I'm trying to list people in the hall of fame with points from the table users

I have this code but it just display's an empty ul

What am I doing wrong???

$sql = "SELECT username, points FROM users LEFT OUTER JOIN halloffame ON(username = famelist) ORDER BY points DESC LIMIT 10";
$result = mysql_query($sql) or die(mysql_error());
if (mysql_num_rows($result) > 0) {
echo "<ul>";
while ($row = mysql_fetch_assoc($result)) {
echo $row['famelist'];
</li>";
}
echo "</ul></div>";
}

Link to comment
https://forums.phpfreaks.com/topic/67270-solved-echo-rowfamel/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.