Trying to display field heading only when field is not empty

Posted by Anees on Stack Overflow See other posts from Stack Overflow or by Anees
Published on 2010-03-29T16:35:03Z Indexed on 2010/03/29 17:03 UTC
Read the original article Hit count: 241

Filed under:

hi, here is my code.

<?php if(!empty($rows_Recordset1['domicile'])) 
    { 
    echo "Domicile"; 
   } 
   else {
    echo "";
} ?>

domicile is field in record set.

the problem is that Domicile heading is not showing where I want it to print. Its showing nothing.

© Stack Overflow or respective owner

Related posts about php