Jump to content

exception while using queries in php


webtuto

Recommended Posts

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";

 

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.