webtuto Posted June 20, 2009 Share Posted June 20, 2009 hey , im using a query like this $rand = "select * from online where ip='$ip' order by id"; i want it to choose IP adresses , but IGNORE mine any ideas ! thanks in advance Quote Link to comment Share on other sites More sharing options...
asmith Posted June 20, 2009 Share Posted June 20, 2009 Ignore your ip? or ignore the user which is running the script? If your ip is x.x.x.x : $rand = "select * from online where ip='$ip' AND ip != 'x.x.x.x' order by id"; If you don't' want it show the user ip : $rand = "select * from online where ip='$ip' AND ip != '".$_SERVER['remote_addr']."' order by id"; Quote Link to comment Share on other sites More sharing options...
webtuto Posted June 20, 2009 Author Share Posted June 20, 2009 thanks its working its easy but i just woke up lol sorry Quote Link to comment Share on other sites More sharing options...
asmith Posted June 20, 2009 Share Posted June 20, 2009 Please use the "topic solved" button If the topic is entirely solved. 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.