| | |
|
|
|
EMPTY DATABASE TABLE |
| message from Ulitasch on 21 Jul 2004 |
How can I tell "Omgeving" not to show, if there is nothing in the database
"omgeving". Do I have to give the server behaviour "show if Recordset is not
empty", but then it does not show if the whole Recordset is not empty not only
"omgeving"? Thanks for helping me:)))
<p>Omgeving</span><br>
<?php echo $row_HUIS['omgeving']; ?></p>
|
| gareth replied to Ulitasch on 21 Jul 2004 |
<?php if(strlen($row_HUIS['omgeving']) > 0 { ?>
<p>Omgeving</span><br>
<?php echo $row_HUIS['omgeving']; ?></p>
<?php } ?>
This uses strlen() to check that the field contains at least 1 character,
and only displays the section if it does, so if the field is empty nothing
is displayed.
|
|
Archived message: EMPTY DATABASE TABLE (Macromedia Dreamweaver Web Design)