connect(); $projects = $db->selectAll($skipTags,5); $projectswrapped =''; foreach ($projects as $project){ $id = $project['id']; $titel = $db->textModify($project['titel']); $text = $db->textModify($project['text'],$id); $time = $project['time']; $media = $project['photo']; $video = $project['video']; $videourl = $project['videourl']; if($video!=''){ $media = $db->mediaEmbed($video,$videourl); } else { $media = $db->mediaEmbed('photo',$media); } $projectContainer = $db->projectMarkup($id,$titel,$text,$time,$media); $projectswrapped .= $projectContainer; } ?> MartinSchuurmans.eu