"; $mysql = "select distinct dp.fdeptcode,dp.fdeptname from masdept dp inner join documents dc on dp.fdeptcode = dc.fdeptcode " . $user_dept . " where fdeptstat='T' and ifnull(dp.fdeleted,'F')<>'T' order by fdeptname"; $myres = mysqli_query($mycon, $mysql); if (mysqli_num_rows($myres) == 0) { echo ""; } elseif (mysqli_num_rows($myres) > 1) { echo ""; } while ($myrow = mysqli_fetch_assoc($myres)) { echo ""; } echo ""; ?> |