ON counter_status.status_code = antrian_pasien.status_code
INNER JOIN dokter_to_poli
ON dokter_to_poli.id_dokter = antrian_pasien.id_dokter
INNER JOIN ruang
ON ruang.id_ruang = antrian_pasien.id_ruang
";
if($id){
$sql.="WHERE antrian_pasien.id_pasien IS NOT NULL AND dokter_to_poli.id_dokter = $id AND antrian_pasien.status_code=10 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=30 or dokter_to_poli.id_dokter = $id and antrian_pasien.status_code=40 ORDER BY no_antrian ASC";
<h6class="panel-title"><iclass="icon-cog3 position-left"></i> Nomor Antrian</h6>
</div>
<divclass="text-center content-group">
<div><inputtype="hidden"value="nomer antrian"id="text-to-speech"placeholder="Enter text to speak..."/></div>
<h1class="error-title"style=" font-weight: bold;font-size:250px;font-family: Times New Roman, Times, serif;color: #808080"><spanid="no_antrian"></span></h1>