product.id
product.title
product.seller_id
seller.id
seller.name
seller.cat_id
SELECT * FROM product
LEFT JOIN seller ON product.seller_id = seller.id
WHERE seller.cat_id=1
SELECT data_json -> "$.books[*].id" FROM test
(function() {
console.log('loaded');
})();
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} !=503
RewriteRule ^ stub.html [L, R=503]
<?php
count(null);
<?php
$arr = [
[
"window" => 01,
"services" => "Asd",
"clients_count" => 4
],
[
"window" => 02,
"services" => "Asd",
"clients_count" => 3
]
];
usort($arr, function($a, $b){
return $a['clients_count'] > $b['clients_count'];
});
print_r($arr[0]);
Array ( [window] => 2 [services] => Asd [clients_count] => 3 )
<div id="tab-controls">
<button data-tab="tab-1">Tab 1</button>
<button data-tab="tab-2">Tab 2</button>
<button data-tab="tab-3">Tab 3</button>
</div>
<div id="tab-1">
<button id="tab-1-filter-1">Filter 1</button>
<button id="tab-1-filter-2">Filter 2</button>
<button id="tab-1-filter-3">Filter 3</button>
<div clas="tab-content">
<div class="tab-1-element filter-1 filter-2" ></div>
...
</div>
</div>
<script>
$('#tab-1-filter-1').click(e=>{
$('.tab-1-element').hide().filter(':has(.filter-1)').show();
});
</script>
e_mail = '$e_mail' phone_number = '$phone_number' region
e_mail = '$e_mail', phone_number = '$phone_number', region
...
let scroller = ()=>{
$('html,body').animate({
scrollTop: firstFeedItem.offset().top
}, 300, ()=>{
if (~~$(window).scrollTop() < ~~(firstFeedItem.offset().top)) {
scroller();
}
});
};
scroller();
...
if (mail($to, $subject, $message, $headers)) {
echo 'OK';
} else {
echo 'NOT OK';
}
mail -s "Test Subject" user@example.com < /dev/null
let Caesar = {
encrypt: function(str){... return out;},
decrypt: function(str){... return out;}
}
document.getElementById('in__сaesar').oninput = function() {
document.getElementById('out__caesar').innerHTML = Caesar.encrypt(this.value);
}