the if statement is not showing correct, it is always showing true even is is wrong.
$sql ="SELECT * FROM `namemap` WHERE `info_hash`=='{$_GET['info_hash']}'";
if ( $sql == true )
{errorexit(`error`);
}
the if statement is not showing correct, it is always showing true even is is wrong.
$sql ="SELECT * FROM `namemap` WHERE `info_hash`=='{$_GET['info_hash']}'";
if ( $sql == true )
{errorexit(`error`);
}
Your $sql variable is just a string, you never execute a query which I assume you wish to do. A string always evaluates to true.