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? Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.