success: function(data) {
console.log(data);
$(".uk-text-large").text("some-text");
}
<?php
require_once "../db/config.php";
$view_1 = '1';
$view_2 = $_GET['view_2'];
var_dump($_GET);
$sql_2 = "UPDATE video SET view = view + :view_1 WHERE id = :view_2";
$stw = $pdo->prepare($sql_2);
$stw->bindParam(':view_1', $view_1);
$stw->bindParam(':view_2', $view_2);
$stw->execute();
echo json_encode($stw);
?>
success: function(data) {
console.log('1');
$(".uk-text-large").text("some-text");
}
<span class="uk-text-large"><?php echo $art['view']; ?></span>
$(".uk-text-large").text()
3621171923
<div id="ajax-view" data-id="<?php echo $art['id']; ?>" class="uk-card-default" uk-lightbox>.........</div>
array(1) { ["view_2"]=> string(3) "139" } {"queryString":"UPDATE video SET view = view + :view_1 WHERE id = :view_2"}