if($tb_department_id){
$sql_search .= " where tb_department_id='".$tb_department_id."' and tb_teacher_status='1' ";
}else{
$sql_search .= " where tb_teacher_status='1' ";
}
$sql_display = $mysql->queryResult("select * from tb_teacher $sql_search order by tb_teacher_id , tb_position_id,tb_academic_id,tb_department_id asc");
จากเดิม PHP 5 พอเปลี่ยนมาใช้ php 8 server แจ้ง error แบบนี้