So i have table:
and here is code: `
mysqli_query($con,"INSERT INTO ip_check (ip_check_address, ip_check_id) VALUES ($encode , $id)");
$ip = $_SERVER['REMOTE_ADDR'];
$encode = ip2long($ip);
$id = htmlspecialchars($_GET["keywordid"]);
$check_id = mysqli_query($con,"SELECT ip_check_id FROM ip_check
WHERE ip_check_address = $encode");
if ($check_id != $id ) {..}
`
I need to check if ip_check_id is already used.