prepare("select * from SavedVideo where AuthorId like '$search' LIMIT ".strval($offset*20).", 20"); $stmt->execute(); $videos = $stmt->fetchAll(); foreach($videos as $video) { if(strlen($name) == 0) { $name = $video["AuthorTitle"]; echo "