note 76535 rejected from control-structures.elseif by nlopess
| From: | nlopess@php.net | Date: | Thu, 19 Jul 2007 15:40:58 +0000 |
| Subject: | note 76535 rejected from control-structures.elseif by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128731@lists.php.net to get a copy of this message | ||
Note Submitter: chitrulos at yahoo dot es
----
I'm trying to make not visible a field when it's empty in a database.
For example, I'd like not to view a blank line when the field is empty, I need that the next
field continues after the previous.
<?php
if (empty ($row_cuerpocentral['subtitulo'])) {
........
} else {
echo $row_cuerpocentral['subtitulo'];
}
?>
where the ........ means what can I do to omit this line.