note 76535 added to control-structures.elseif
| From: | chitrulos at yahoo dot es | Date: | Thu, 19 Jul 2007 15:34:12 +0000 |
| Subject: | note 76535 added to control-structures.elseif | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128729@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 200.59.45.3
Probable Submitter: 201.235.170.53
----
Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php
Edit -- https://master.php.net/note/edit/76535
Del: integrated -- https://master.php.net/note/delete/76535/integrated
Del: useless -- https://master.php.net/note/delete/76535/useless
Del: bad code -- https://master.php.net/note/delete/76535/bad+code
Del: spam -- https://master.php.net/note/delete/76535/spam
Del: non-english -- https://master.php.net/note/delete/76535/non-english
Del: in docs -- https://master.php.net/note/delete/76535/in+docs
Del: other reasons-- https://master.php.net/note/delete/76535
Reject -- https://master.php.net/note/reject/76535
Search -- https://master.php.net/manage/user-notes.php