$checkRepeat = "SELECT id AS pid FROM ".$dbtable." WHERE phone = $phone OR ip = $user_ip";
$results = mysqli_fetch_array(mysqli_query($link, $checkRepeat), MYSQLI_ASSOC);
$pid = $results['id'];
if($results) {
......
}
$checkRepeat = "SELECT id AS pid FROM ".$dbtable." WHERE phone = $phone OR ip = $user_ip";
$pid = '.pid.'; // вобще не понял этой строки...
$results = mysqli_fetch_array(mysqli_query($link, $checkRepeat), MYSQLI_ASSOC);
if($results) {
......
}