
$car = $_POST['user_car'];$car = array_key_exists('user_car', $_POST) ? $_POST['user_car'] : null;$mail->Body = '' .$name . ' хочет перегнать машину ' .$car. ' из ' .$from. ' в ' .$to. '. <br> Вот его номер телефона ' .$phone;$mail->Body = $name . ' хочет перегнать '.(is_null($car) ? 'неуточненную машину' : 'машину ' .$car). ' из ' .$from. ' в ' .$to. '. <br> Вот его номер телефона ' .$phone;$name = htmlspecialchars($_POST['user_name']);
$phone = htmlspecialchars($_POST['user_phone']);
$car = array_key_exists('user_car', $_POST) ? htmlspecialchars($_POST['user_car']) : null;
$from = htmlspecialchars($_POST['from']);
$to = htmlspecialchars($_POST['to']); $('.close-popup').on('click', function(event){
$('.clicked').removeClass('clicked');
event.stopPropagation();
});$description1[] = array([..................])// This formula always makes the wheel stop somewhere inside prize 3 at least
// 1 degree away from the start and end edges of the segment.
$p = $imgwidth * 1.0 / $imgheight; // пропорция; умножение на 1.0 чтобы перевести число в float;
$delta_q = 0.1; // Дельта ощущения "квадратности" изображения
switch(true)
{
case $p > (1.0 + $delta_q): echo 'альбомный формат изображения'; break;
case $p < (1.0 - $delta_q): echo 'книжный формат изображения'; break;
default: echo 'изображение, вероятно, квадратное';
}text.innerHTML = arr.join(', ');var dis = arr.map(function (item)
{
return Math.round(item - item * (5 / 100.0));
});xhr.send(file); // отправили файл аяксом, мы молодцы.
document.getElementById('uploadDropForm').submit(); // зачем-то еще отправляем форму традиционным способом, наверное тут мы что-то делаем не так.???...
console.log(file);
xhr.send(file);
... let regExpB = textContent.match(begin); // передаю. и на выходе null
let regExpE = textContent.match(end ); //header('Content-type: text/html; charset=utf8');
echo file_get_contents('http://antiko22.info/vse_novosti/dolg-pered-mfo-ne-mozhet-prevyshat-telo-zajma-bolee-chem-v-3-raza/'); select item.idItem
from item
where
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Железо"
and details_item.idItem = item.idItem) > 0
and
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Дерево"
and details_item.idItem = item.idItem) > 0
and
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Медь"
and details_item.idItem = item.idItem) > 0
.... и так далее, все обязательные критерии прописываем через подзапрос count()select idItem
from (select item.idItem,
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Железо"
and details_item.idItem = item.idItem) as count_1,
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Дерево"
and details_item.idItem = item.idItem) as count_2,
count (SELECT details_item.idItem FROM details_item
JOIN detail ON detail.idDetail = details_item .idDetail
WHERE detail.title = "Медь"
and details_item.idItem = item.idItem) as count_3
.... и так далее все обязательные критерии через подзрапрос count(...) as count_n
from item)
where count_1 > 0 and count_2 > 0 and count_3 > 0 -- строгое соответствие параметрам поиска
-- тут делаем логику нечувствительности к одному из параметров поиска
or count_1 = 0 and count_2 > 0 and count_3 > 0
or count_1 > 0 and count_2 = 0 and count_3 > 0
or count_1 > 0 and count_2 > 0 and count_3 = 0