$num = intval($_GET['num']);
$lim = 12;
$std = $pdo->prepare("SELECT * FROM `video` ORDER BY `id` DESC LIMIT {?}, ?");
$std->bindValue(1, $num, PDO::PARAM_INT);
$std->bindValue(2, $lim, PDO::PARAM_INT);
$std->execute();
$result = $std->fetchAll();
echo json_encode($result);
$sql_1 = "SELECT * FROM `video` ORDER BY `id` DESC LIMIT 12";
$std = $pdo->query($sql_1, PDO::FETCH_ASSOC);
$std->execute();
echo json_encode($std->fetch(PDO::FETCH_ASSOC));
echo json_encode($std->fetch(PDO::FETCH_ASSOC));
{queryString: "SELECT * FROM `video` ORDER BY `id` DESC LIMIT {:num}, :lim"}queryString: "SELECT * FROM `video` ORDER BY `id` DESC LIMIT {:num}, :lim"__proto__: constructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
$(".video").append('<div uk-scrollspy="target: > div; cls:uk-animation-fade; delay: 200"><div class="uk-card uk-card-default"><div uk-lightbox><a href="media/' + data.place_of_location + '.mp4'+'" caption="Video"><div class="uk-card-media-top uk-inline uk-inline-clip uk-transition-toggle"><img class="uk-transition-scale-up uk-transition-opaque" src="media/images/' + data.img + '.jpg' + '" alt="' + data.title + '"><div class="uk-position-medium uk-position-cover uk-overlay uk-flex uk-flex-center uk-flex-middle uk-light"><span uk-icon="icon: play-circle; ratio: 3.5"></span></div><div class="uk-light uk-position-bottom-left"><span class="uk-icon uk-icon-image uk-light" style="background-image: url(media/views.png)"></span><span class="uk-text-large">' + data.views + '</span></div></div></a></div><div class="uk-card-body"><p>' + data.title + '</p></div></div></div>');
SELECT * FROM `video` ORDER BY `id` DESC LIMIT {:num}, :lim
Call to a member function prepare() on a non-object
SELECT {$name} FROM reg WHERE login=:login AND password=:passwd
SELECT {$this->name} FROM reg WHERE login=:login AND password=:passwd