You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
250 B
19 lines
250 B
5 years ago
|
<?php
|
||
|
include '../functions.php';
|
||
|
|
||
|
$url = $_REQUEST['url'];
|
||
|
|
||
|
if(!isset($url)) die();
|
||
|
|
||
|
$conn = db__connect();
|
||
|
|
||
|
if(!db__rowNum($conn, "video", "url", $url)) {
|
||
|
die();
|
||
|
}
|
||
|
|
||
|
|
||
|
$res = db__getData($conn, "video", "url", $url);
|
||
|
|
||
|
|
||
|
echo json_encode($res[0]);
|