21 lines
515 B
PHP
21 lines
515 B
PHP
<?php header('Content-type: application/json');
|
|
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
|
|
|
|
include(PATHTOINCLUDES."base.php");
|
|
|
|
$em="";
|
|
|
|
$youtubeid=$_GET["thevidid"];
|
|
|
|
|
|
|
|
$sql="UPDATE `you_x_tube` SET `you_x_tube`.`theclicks` = (`you_x_tube`.`theclicks`+1) WHERE `you_x_tube`.`vid_id` = '".$youtubeid."'";
|
|
|
|
$result=$database->database_query($sql) or $em=$em.$database->database_error();
|
|
|
|
$arr = array ('error'=>$em);
|
|
|
|
echo json_encode($arr);
|
|
|
|
?>
|