$view_2 = $_GET['view_2'];
$sql_1 = "UPDATE video SET lik = lik + '1' WHERE id = :get";
$stw = $pdo->prepare($sql_1);
$stw->bindParam(':get', $view_2);
$stw->execute();
$sql_2 = "SELECT lik,id FROM video WHERE id = :view_2";
$ste = $pdo->prepare($sql_2);
$ste->bindParam(':view_2', $view_2);
$ste->execute();
$res = $ste->fetch(PDO::FETCH_ASSOC);
echo json_encode($res);