Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

use if else for checking if value in db table column

Quick question, can I use php if and else to display alternate text for example say if there is a filename in the db table column then display the filename but if not a filename in the db table column and it's empty then not to display anything

Is the following code the right way to do it or should it be different?


<?php if (!empty($row->file_name))
echo "<br><br>";
echo html_entity_decode($row->file_name)
?>
PHP:


from PHP https://ift.tt/2QSvnOt
via IFTTT

Post a Comment

0 Comments