Im trying to display only 3 videos(the 2nd, 3rd and 4th) from my database but I really cant make it work.
I try adding this if ($i++%2==1) {
to the code but i doest work
<?php foreach ($articles as $article) {
$category = $article['article_category'];
if ($category == "video")
{
?>
<iframe width="325" height="186" src="http://www.youtube.com/embed/<?php echo $article['article_video']; ?>?rel=0" frameborder="0" allowfullscreen></iframe>
<?php
}
}
?>
Could i get some help thanks