Code:
if (!empty($row['image']) || !empty($row['video'])) {
if (strlen($text) == 0 || !empty($text))
{
echo '<div class="text1">'. $text1 .'</div>';
}
}
else if (!empty($text)) {
echo '<div class="text">'. $text11 .'</div>';};
Next condition doesn`t work:
if (strlen($text) == 0 || !empty($text))
Code is not check for empty value. I need check $text for not to be empty.
Aucun commentaire:
Enregistrer un commentaire