HighDots Forums  

EMPTY DATABASE TABLE

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss EMPTY DATABASE TABLE in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ulitasch
 
Posts: n/a

Default EMPTY DATABASE TABLE - 07-21-2004 , 04:50 AM






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>


Reply With Quote
  #2  
Old   
gareth
 
Posts: n/a

Default Re: EMPTY DATABASE TABLE - 07-21-2004 , 08:27 AM






<?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.


--
Gareth
http://www.garethdp.com/
Buzz inet - http://www.buzzinet.co.uk/

Team Macromedia Volunteer for Dreamweaver MX
Dreamweaver MX Support: http://www.dreamweavermxsupport.com/index.php

PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
http://www.dreamweavermxsupport.com/extensions/

Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.