Islamic Online University Instructors
$sqlfortopic = mysql_query("select * from `iou_profiles` where type like 'instructors' order by `name` asc");
// echo mysql_error($sqlfortopic);
$phd =[];
$nphd =[];
while($topic = mysql_fetch_array($sqlfortopic))
{
if(stristr($topic['name'], 'Dr.'))
{
$phd[]=array('name'=> $topic['name'],'image'=> $topic['image'],'description'=>$topic['description'],'video_link'=> $topic['video_link']);
}
else
{
$nphd[]=array('name'=> $topic['name'],'image'=> $topic['image'],'description'=>$topic['description'],'video_link'=> $topic['video_link']);
}
}
asort($phd);
asort($nphd);
$details = array_merge($phd, $nphd);
?>