i have menu from database.
$sqlCommand = "SELECT id, menu FROM myTable WHERE showing='1' ORDER BY id ASC";
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
$menu='';
while ($row = mysqli_fetch_array($query)) {
$id = $row["id"];
$hormenu = $row["menu"];
$menu .='<li><a href="mypage.php?id='.$id.'">'. $hormenu .'</a></li>';
}
when i keep any menu field empty.
it shows me
<li><a href="mypage.php?id='.$id.'"></a></li>
how could i hide or disable it
Any help Plzz.
check if it has any data