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
$out_arr = array();
while($hero2 = mysqli_fetch_assoc($hero1))
{
$time_now = strtotime($hero2['cron1']);
$time_need = strtotime($hero2['cron2']);
if($time_need>=$time_now ){
$t_s= date("H:i ",75600-($time_need-$time_now));
}
else
$t_s= date("H:i ",75600-($time_now-$time_need));
$out_arr[] = str_replace(":",".",$t_s);
}
echo "[".join(' ,', $out_arr).']';
Чтобы строго соблюдать RFC 3986 (который резервирует !, ', (, ), и *), даже не смотря на то, что символы не используют сформированных URI разделителей, можно безопасно использовать следующее:
function fixedEncodeURIComponent (str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
return '%' + c.charCodeAt(0).toString(16);
});
}
SELECT shop_product.id, if(shop_product_skus.count >= 3, shop_product_skus.count, 0) as count
FROM shop_product
join shop_product_skus on shop_product.id = shop_product_skus.product_id
WHERE
shop_product.id IN (14770, 13287, 14160, 13906)
function mobile_detect() {
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$ipod = strpos($user_agent,"iPod");
$iphone = strpos($user_agent,"iPhone");
$android = strpos($user_agent,"Android");
$symb = strpos($user_agent,"Symbian");
$winphone = strpos($user_agent,"WindowsPhone");
$wp7 = strpos($user_agent,"WP7");
$wp8 = strpos($user_agent,"WP8");
$operam = strpos($user_agent,"Opera M");
$palm = strpos($user_agent,"webOS");
$berry = strpos($user_agent,"BlackBerry");
$mobile = strpos($user_agent,"Mobile");
$htc = strpos($user_agent,"HTC_");
$fennec = strpos($user_agent,"Fennec/");
$nokia = strpos($user_agent,"Nokia");
if ($ipod || $iphone || $android || $symb || $winphone || $wp7 || $wp8 || $operam || $palm || $berry || $mobile || $htc || $fennec || $nokia)
{
echo "<link rel='stylesheet' media='all' href='mobile.css' type='text/css' />";
}
else
{
echo "<link rel='stylesheet' media='all' href='desktop.css' type='text/css' />";
}
}
mobile_detect();
'articles.mgr_date_format' => '%b %d',
'articles.mgr_date_format' => '%d.%m.%Y',
$result = str_replace(array('amp;', '&', 'quot;'), '', 'Ремень HENDERSON &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot; "2 в 1&am');
def = document.getElementById('put_in');
if (def.value == 488)
else(parseInt(input.value)==0)