parent
59366815bc
commit
68b4db9ce3
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,18 @@ |
||||
<?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); |
||||
$next = db__getData($conn, "video", "vid", $res[0]["link"]); |
||||
|
||||
echo json_encode(array( |
||||
url => $next[0]["url"] |
||||
)); |
Loading…
Reference in new issue