if ($('div.step').eq(current_step).find('input').val() == '') {
alert('Пожалуйста, заполните поле');
return false;
}
var navigationId = 1;
var id = navigationId++;
console.log(id); // ouput: 1
console.log(navigationId); // output: 2
var navigationId = 1;
var id = ++navigationId;
console.log(id); // ouput: 2
console.log(navigationId); // output: 2
SELECT *
FROM `table`
WHERE `status`='maubert'
AND (
(`AssosUser`='LAROQUE' AND `telepro`='DENIS') OR
(`AssosUser` IN ('LAROQUE', 'N.C.') AND `telepro` IN ('MANGEL', 'MORANGE')
);
$str = "http://site.com/catalog/visa/bla";
if (preg_match("/http:\/\/site.com\/catalog\/visa\/([A-Z0-9]*)/", $str)) {
echo "Matched";
}
$('input').on('focusout', function() {
var rawValue = $(this).val();
var roundedValue = Math.round(rawValue.replace(",", ".")*100)/100;
$(this)
.attr('data-raw-value', rawValue)
.val(roundedValue);
}).on('focusin', function() {
if (typeof $(this).attr('data-raw-value') !== 'undefined') {
var roundedValue = $(this).attr('data-raw-value');
$(this).val(roundedValue);
}
});
class Session
{
private $Database;
public function __construct(DatabaseInterface $Database)
{
$this->Database = $Database;
}
}
interface DatabaseInterface {}
class Database implements DatabaseInterface {}
# $n - номер необходимой строки
head -$n file | tail -1;
db
username
db_pass
sudo mysqldump -u`head -2 file | tail -1` -p`head -3 file | tail -1` `head -1 file | tail -1`> $database.sql
$row = $result->fetch_row();
$firstField = $row[0];
_stripSlashesRecursive($firstField);
$query = Model::find()->where('name LIKE :q')->addParams(['q'=>$q . '%'])->orderBy('name ASC')->all();
Я удалю ее с HDD и она активируется на SSD?