<form method="post" enctype="multipart/form-data" target="iframe-upload" action="/ajax/upload_attach_file" id="form_upload">
<input type="file" name="file">
</form>
<iframe style="display: none; border:0" src="#" name="iframe-upload"></iframe>
$(document).on('change', 'input[type=file]', function() {
$('#form_upload').submit();
})
$is_available = 1;
$sql_query = "SELECT * FROM table WHERE dates_list LIKE '%2015-11-20|{$is_available}%' OR dates_list LIKE '%2016-01-03|{$is_available}%' OR ..."
<a href="http://test.artlenk.ru/theme/img/feature-img.jpg" class="fancybox2"><img src="http://test.artlenk.ru/theme/img/feature-img.jpg"></a>
<div style="position:relative">
<nav>
<h5>Nav</h5>
<button>Exit</button>
</nav>
<aside>
<h5>Sidebar</h5>
<button>Exit</button>
</aside>
<main>...</main></div>
$url = 'http://site.ru/down/file.php';
$save_path = __DIR__;
for($i=0;$i<=999999;$i++){
if (!file_exists($save_path."file_{$i}.png")){
file_put_contents($save_path."file_{$i}.png",file_get_contents($url."?id={$i}"));
}
}
SELECT table1.*, (SELECT count(id) FROM table2 WHERE table1_id=table1.id AND filter...)
FROM table1