Show video IF the column is not empty AND the column contains the word iframe (attempting to show if LIKE)
I want to show the embedded version of the video IF the video exists and the column contains the word iframe. If not, I want to show just the column name. Folks are pasting the url rather than the embed code and then I have a big empty space on the page due to my responsive code around the video container. I tried this with no luck.
<?php if ($row_WADAtbl_posts['video'] != "" && strpos($row_WADAtbl_posts['video'],"iframe") !== "false"){ ?>
<div class="video-container"><?php echo($row_WADAhorses['horse_video']); ?>
</div>
<?php
}
?>
<?php if ($row_WADAtbl_posts['video'] != "" && strpos($row_WADAtbl_posts['video'],"iframe") === "false"){ ?>
<?php echo($row_WADAhorses['horse_video']); ?>
<?php
}
?>