I have the following code and i need to hide area2 and adsec2 if in my mysql table are empty.
here is my code
while($row = mysqli_fetch_array($resultFilmCerts)) {
echo "\t<tr><td>".$row['pn']."</td><td>".$row['fname']."</td><td>".$row['lname']."</td><td>".$row['careerin']."</td><td>".$row['careerout']."</td><td>".$row['area1']."-".$row['adsec1']."<br>".$row['area2']."-".$row['adsec2']."</td><td>View <i>thematic </i>career</td></tr>\n";
}
check for null.
while($row = mysqli_fetch_array($resultFilmCerts)) {
add these two lines above your echo statement.