CJLeah Posted April 20, 2006 Share Posted April 20, 2006 [code]<?php $sql_users = mysql_query("SELECT * FROM users WHERE staff = 10, ORDER BY ID DESC LIMIT 0, 10"); $users = mysql_fetch_assoc($sql_users);do {($users['username'],("view_user?=".$users['id']),"default");} while ($users = mysql_fetch_assoc($sql_users)); ?>[/code]Above is the code i'm using to try and extract users that have a staff level of 10, but it's not working please help! Below is the error I get:Parse error: parse error, unexpected ',' in /home/tmafia/public_html/staff.php on line 14any help? Link to comment https://forums.phpfreaks.com/topic/7916-data-from-a-db/ Share on other sites More sharing options...
Barand Posted April 20, 2006 Share Posted April 20, 2006 [code]$sql_users = mysql_query("SELECT * FROM users WHERE staff = 10, ORDER BY ID DESC LIMIT 0, 10");$users = mysql_fetch_assoc($sql_users);do { echo $users['username'], <br>';} while ($users = mysql_fetch_assoc($sql_users)); [/code]what is this supposed to do[code]("view_user?=".$users['id']),"default")[/code] Link to comment https://forums.phpfreaks.com/topic/7916-data-from-a-db/#findComment-28868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.