You could also try using sudo, but this should be avoided:
[
{
area:'70-119',
prices:{40:663,50:693,60:723}
},
{
area:'120-199',
prices:{40:547,50:575,60:603}
},
{
area:'1000-1999',
prices:{40:345,50:367,60:389}
}
]
localStorage.modal = 1;
if (localStorage.modal) // открываем без задержки
else // открываем с задержкой
localStorage.removeItem("modal");
function clear_string($test_string) {
$test_rules_match = preg_match('/(?P<selector>[^\{\s*]+)\{(?P<rules>[^\}]+)\s*\}/ui', $test_string, $test_string_parts);
$test_selector = $test_string_parts['selector'];
$test_rules = $test_string_parts['rules'];
$new_test_string_array = []; $clean_string = $test_string;
if(preg_match_all('/(?P<prop>[a-z]+):(.*?)(?P<important>!important)*;/i',$test_rules,$matches,PREG_PATTERN_ORDER)) {
foreach ($matches['prop'] as $id=>$selector) {
if(!isset($new_test_string_array[$selector]) || !preg_match('~important~ui',$new_test_string_array[$selector]) || $matches['important'][$id]>'')
$new_test_string_array[$selector] = $matches[0][$id];
}
$clean_string = $test_selector.' {'.implode('',$new_test_string_array).'}';
}
return($clean_string);
}
$(document).ready(function() {
$('#example').DataTable( {
"processing": true,
"serverSide": true,
"ajax": "../server_side/scripts/server_processing.php"
} );
} );
$sql_query = "SELECT * FROM `employee` LIMIT ?, ?";
$stmt = $db->prepare($sql_query);
$stmt->bindParam($params['start'], $min, PDO::PARAM_INT); // правильно подставляем start
$stmt->bindParam($params['length'], $min, PDO::PARAM_INT); // правильно подставляем length
$stmt->execute();