`updated` = NOW(3)
mysql> CREATE TABLE fractest( c1 TIME(2), c2 DATETIME(2), c3 TIMESTAMP(2) );
Query OK, 0 rows affected (0.33 sec)
mysql> INSERT INTO fractest VALUES
> ('17:51:04.777', '2014-09-08 17:51:04.777', '2014-09-08 17:51:04.777');
Query OK, 1 row affected (0.03 sec)
mysql> SELECT * FROM fractest;
+-------------+------------------------+------------------------+
| c1 | c2 | c3 |
+-------------+------------------------+------------------------+
| 17:51:04.78 | 2014-09-08 17:51:04.78 | 2014-09-08 17:51:04.78 |
+-------------+------------------------+------------------------+
1 row in set (0.00 sec)
SELECT NOW(6);
SELECT MICROSECOND('2010-12-10 14:12:09.019473');
$posts = json_decode(file_get_contents("https://api.vk.com/method/wall.get?&owner_id=$owner_id&count=100&access_token=$service"));
$inserts = array();
foreach ($posts->response as $res => $result) {
if ($res < 2) continue;
$id = $result->id;
$artist = $result->attachments[1]->audio->artist;
$title = $result->attachments[1]->audio->title;
$inserts[] = "(".(int)$id.", '".$mysqli->real_escape_string($artist)."', '".$mysqli->real_escape_string($title)."')";
echo "<pre>";
echo "$id | $artist | $title";
echo "</pre>";
}
if (sizeof($inserts) > 0) {
$mysqli->query("INSERT INTO `table` (`id`, `artist`, `title`) VALUES ".implode(',', $inserts)."");
}
<div class="video_wrap">
<video class="video_bg" autoplay="autoplay" loop="loop">
<source src="video.m4v" type="video/mp4" />
<source src="video.webm" type="video/webm" />
<source src="video.ogg" type="video/ogg" />
</video>
</div>
.video_wrap {
position: absolute;
overflow: hidden;
background: url(/img/poster.jpg) center repeat;
z-index: -999;
min-height: 870px;
max-height: 870px;
display: block;
width: 100%;
max-width: 2560px;
}
.video_bg {
display: block;
position: relative;
z-index: 0;
margin: 0 auto;
width: 125%;
}
<p>Вы читаете <span id="wordshift">слово</span></p>
$("#wordshift").mouseover(function () {
$("#wordshift").html("уже другое слово");
});
$("#wordshift").mouseleave(function () {
$("#wordshift").html("слово");
});
<?foreach($arItem["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<small>
<?=$arProperty["NAME"]?>:
<?if($arProperty["CODE"] == "SLIDE_IMAGE") {?>
<?foreach($arProperty["VALUE"] as $image) {?>
<img src="<?=CFile::GetPath($image)?>" />
<?}?>
<?} else {?>
<?if(is_array($arProperty["DISPLAY_VALUE"])):?>
<?=implode(" / ", $arProperty["DISPLAY_VALUE"]);?>
<?else:?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?endif?>
<?}?>
</small><br />
<?endforeach;?>
<li{if ($group.default == $id_attribute)} class="active"{/if}>
<input onchange="$(this).parent().parent().find('li').removeClass('active').find('input:checked').parent().addClass('active')" type="radio" class="attribute_radio" name="{$groupName|escape:'html':'UTF-8'}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} />
<span>{$group_attribute|escape:'html':'UTF-8'}</span>
</li>
было #attributes .attribute_list ul li:hover
стало #attributes .attribute_list ul li:hover, #attributes .attribute_list ul li.active
ab -c 10 -n 100 http://server.org
$arr = range(1, 10);
$arr = array();
for ($i = 1; $i < 10; $i++) {
$arr[] = $i;
}