Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $check = dbrows(dbquery("SELECT * FROM recent WHERE video_id = '".$video_id."'"));
- if($check == 0):
- $gtitle = str_replace("'", "-", $video->title);
- dbquery("INSERT INTO recent VALUES ('".$video_id."', '".$video->thumbnailURL."', '".$gtitle."', '".time()."')");
- else:
- dbquery("UPDATE recent SET time='".time()."' WHERE video_id = '".mysql_real_escape_string($video_id)."'");
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement