Jump to content

Compare IP-address!


Beppis

Recommended Posts

Is it definately POST or GET, as the url you have posted contains parameters. Use the correct superglobal $_POST, $_GET.

i.e

postback.php

 

$query = mysql_query("SELECT * FROM users WHERE ip='".mysql_real_escape_string($_POST['ip'])."'");
if(mysql_num_rows($query)) {
$thisUser = mysql_fetch_assoc($query);
}

Link to comment
https://forums.phpfreaks.com/topic/209573-compare-ip-address/#findComment-1094070
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.