tags:

views:

18

answers:

1

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.

A: 

Are you sure? If $rows_Recordset1['domicile'] is not empty then it is the opposite of what you want. Try change

!empty($rows_Recordset1['domicile'])

to

empty($rows_Recordset1['domicile'])

Hope it helps

NebNeb