Jump to content

[SOLVED] mysql_query


chriscloyd

Recommended Posts

Can you get a mysql where u do it like this "WHERE level = 'sales', 'admin'
heres my code
[code]
<?
$sales = mysql_query("SELECT * FROM users WHERE level = 'sales', 'admin' ORDER BY first ASC");
while ($s = mysql_fetch_assoc($sales)) {
      echo '<option value="'.$s['id'].'">'.$s['first'].' '.$s['last'].'</option>';
}
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/30606-solved-mysql_query/
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.