UPDATE `modx_site_tmplvar_contentvalues` SET `value`="img/catalog/staldefence/111.00325.1.jpg" WHERE `id` = "1" ;UPDATE `modx_site_tmplvar_contentvalues` SET `value`="8912222" WHERE `id` = "2" ;UPDATE `modx_site_tmplvar_contentvalues` SET `value`="741222" WHERE `id` = "3" ;
$link = mysqli_connect("localhost", "login", "pass", "db");
/* проверка соединения */
if (mysqli_connect_errno()) {
printf("Не удалось подключиться: %s\n", mysqli_connect_error());
exit();
}
$city = $_POST['query'];;
$city = mysqli_real_escape_string($link, $city);
$result = mysqli_query($link, $city);
echo $result ;
mysqli_close($link);
$mysqli = new mysqli("localhost","login","pass");
/* проверка соединения */
if (mysqli_connect_errno()) {
echo 'NONE!';
exit();
}
$city = $_POST['query'];
$city = $mysqli->real_escape_string($city);
if ($mysqli->query("'$city'")) {
echo 'Добавлено';
}
player.hp - enemy.damage;
$player.hp_code.text(player.hp ) //$('.playerHealthPoints');
function card_copy(point) {
this.health = point.health;
this.defaultHealth = point.defaultHealth;
this.damage = point.damage;
...
return new Proxy(this, {
set(target, prop, val) {
alert(`Значение свойства ${prop} меняется с ${target[prop]} на ${val}`)
target[prop] = val
return true
}
})
return new Proxy(this, {
set(target, prop, val) {
alert(`Значение свойства ${prop} меняется с ${target[prop]} на ${val}`)
target[prop] = val
return true
}
})
function this_copy(src) {
return JSON.parse(JSON.stringify(src));
}