NarrowVictory
https://php-forum.com/index.php?threads/do-not-ech
I have the following for not printing an empty field in the MYSQL table:
if (trim($option_second) == "") { echo ""; } else { echo "<strong>Option:</strong> $option_second"; }
I have a search page now that displays the records for the MYSQL table, but I do not know how to hide the records that are empty like the above code. Here is what I have:
Option: <?= $items['option_second']; ?>
I would like this to not print if empty like the first code.
Thank you
if (trim($option_second) == "") { echo ""; } else { echo "<strong>Option:</strong> $option_second"; }
I have a search page now that displays the records for the MYSQL table, but I do not know how to hide the records that are empty like the above code. Here is what I have:
Option: <?= $items['option_second']; ?>
I would like this to not print if empty like the first code.
Thank you