Thanks! It's printing out the correct number of records but doesn't seem to be displaying the users name. All I see is:
Any ideas? This is the code I'm using.
PHP Code:
<?php
$userlist = @mysql_query(
"SELECT u.name FROM users AS u INNER JOIN user_category AS uc ON u.id = uc.user_id INNER JOIN category AS c ON uc.category_id = c.id WHERE c.id='3' ORDER BY u.name ASC");
if (!$userlist) {
exit ('<p>Error performing query: ' . mysql_error() . '</p>');
}
while ($user = mysql_fetch_array($userlist)) {
$user_name = $user['u.name'];
echo "<p><span class='bullet'>¤</span> $user_name<br /></p>";
}
?>
Bookmarks