The site prints information from the database into a pop-up menu, but if you create an id record, empty fields are formed, how to make them hide or information is entered into the database by id and empty fields, if you now create a column, for example mtl, it will be 7 id, and preferably 2 and so on

for($i=1;$i<=1000;$i++) { $sql=mysql_query("select * from `figures` where `id`='".$i."' order by `aboutObj`"); while($s=mysql_fetch_array($sql)) { echo "<option value='".$s['id']."'>".$s['aboutObj']."</option>"; } $sec=$s['id']; echo "<br>"; }
select * fromfigures` order by `aboutObj`` and why is it $ sec = $ s ['id']; ? Does nothing - Volodymyrif($s['mtl'] == '' && $s['objmtl'] =='' && $s['about..'] =='') continue;- Volodymyr