Hi, i'm very new to this so please speak slowly
here i my code...
<?php
$restult = NoReturn;
$dbcon=mysqli_connect(*******,*********,*************,************);
if (mysqli_connect_errno($con))
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$restult=$mysqli_query("SELECT 'COL 4' FROM TABLE 1 WHERE (COL 1 >= $clientIP) && (WHERE COL 2 <= $clientIP)");
echo $restult;
?>
as you might be able to see, i have a database with column 1 as the from ip addresses and column 2 as the to ip addresses. column 4 has the country name that the range applies to.
When i run this code on my server withing a .php file nothing comes back. can anyone point me in the right direction as to what i'm doing wrong?
many thanks,
royal1664