что ещё можно такого сделать
var slider = new MasterSlider();
slider.setup('masterslider' , {
width:800, // slider standard width
//height:350, // slider standard height
space:5,
speed:10,
view:'fade',
swipe:true,
autoplay:true,
loop:true,
autoHeight:true,
layout:'fillwidth',
overPause:false,
centerControls:false,
fullwidth:true
// more slider options goes here...
// check slider options section in documentation for more options.
});
// adds Arrows navigation control to the slider.
slider.control('arrows');
<?php
$array = array(
'1 колонка',
'2 колонка',
'3 колонка'
);
$string_1 = '';
$string_2 = '';
if(count($array) > 0) {
foreach($array as $value) {
$string_1 .= ' <div class="col">' . $value . '</div>' . PHP_EOL;
$string_2 .= '<div class="row">' . PHP_EOL . ' <div class="col">' . $value . '</div>' . PHP_EOL . '</div>' . PHP_EOL;
}
$result = '<div class="row">' . PHP_EOL . $string_1 . '</div>' . PHP_EOL . $string_2;
echo $result;
}
<div class="row">
<div class="col">1 колонка</div>
<div class="col">2 колонка</div>
<div class="col">3 колонка</div>
</div>
<div class="row">
<div class="col">1 колонка</div>
</div>
<div class="row">
<div class="col">2 колонка</div>
</div>
<div class="row">
<div class="col">3 колонка</div>
</div>
<?php
$string = '
{
"ok": true,
"result": [
{
"message": {
"date": 1270110569,
"text": "hello",
"from": {
"first_name": "Test",
"last_name": "FGHTZX",
"is_bot": false,
"id": 234512896,
"language_code": "ru"
},
"message_id": 16,
"chat": {
"first_name": "Test",
"last_name": "FGHTZX",
"type": "private",
"id": 234512896
}
},
"update_id": 474148724
}
]
}
';
$result_parse = json_decode($string, TRUE);
$text = $result_parse['result'][0]['message']['text'];
$id = $result_parse['result'][0]['message']['message_id'];
echo 'Text: ', $text, ', id:', $id;
//Text: hello, id:16
$ip = $_SERVER ['REMOTE_ADDR'];//Не $_POST
"update ".TABLE_ADS." set `featured`=$featured_plan, `active`=1, `date_expires`=CURDATE() + INTERVAL (select `no_days` from ".TABLE_FEA_PLANS." where `id`='$id' LIMIT 1) DAY where `id`='$id'"
UPDATE `table_1` SET `key_1` = 'val_1' WHERE `key_2` = (SELECT `val_2` FROM `table_2` WHERE `key_3` = 'val_3' LIMIT 1) LIMIT 1
UPDATE `table_1` SET `key_1` = (SELECT `val_2` FROM `table_2` WHERE `key_3` = 'val_3' LIMIT 1) WHERE `key_2` = 'val_1'
UPDATE `table_1` SET `key_1` = 'val_1' WHERE `key_2` IN (SELECT `val_2` FROM `table_2` WHERE `key_3` = 'val_3')