SELECT DISTINCT wld_posts.* FROM wld_posts INNER JOIN wld_postmeta ON
( wld_posts.ID = wld_postmeta.post_id ) LEFT JOIN wld_postmeta AS wld_acf_meta ON
wld_posts.ID = wld_acf_meta.post_id WHERE 1=1 AND ( ( ( wld_postmeta.meta_key = '_listing_price' AND CAST(wld_postmeta.meta_value REGEXP '[^0-9]' AS SIGNED) BETWEEN '1' AND '5000' ) ) )
AND wld_posts.post_type = 'listing' AND ((wld_posts.post_status = 'publish'))
$(document).bind('DOMNodeInserted', function(e) {
if($('.ocwma_modal-content').length) {
$('.ocwma_woocommerce-address-fields .woocommerce-input-wrapper #billing_email').val('example@example.com');
$('.ocwma_woocommerce-address-fields .woocommerce-input-wrapper #billing_email').attr('type','hidden');
$('.ocwma_woocommerce-address-fields p#billing_email_field label').css('display','none');
}
});
$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']."')";