Gazz1982 Posted June 9, 2008 Share Posted June 9, 2008 hi I'm using: $result = mysql_query("SELECT * FROM login order by EMAIL") I want to select * except where column = admin how do I alter this? Thanks Quote Link to comment Share on other sites More sharing options...
revraz Posted June 9, 2008 Share Posted June 9, 2008 Adding this should do it. WHERE column != 'admin' Quote Link to comment Share on other sites More sharing options...
Gazz1982 Posted June 9, 2008 Author Share Posted June 9, 2008 Thanks - I just figured it out myself - I'm rusty! 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.