$ip = $_SERVER['REMOTE_ADDR'];
for($q = 0; $q < $i; $q++) {
if($black_list[$q][0] <= $ip and $ip <= $black_list[$q][1]) {
echo 'ok';
}
}
$html = file_get_html('https://www.olx.ua/transport/legkovye-avtomobili/'); // что парсим
$massive_name = [];
foreach($html->find('a[data-cy="listing-ad-title"]') as $element)
$massive_name[] = [
$element
];
echo $massive_name[0][0];
$sql = "INSERT INTO users (Email, Password, Name, Surname, type_account, company_name, phone_number)
VALUES ('".$_POST['email']."', '".$_POST['password']."', '".$_POST['name']."', '".$_POST['fname']."',
'".$_POST['type_account']."', '".$_POST['company_name']."', '".$_POST['phone_number']."')";