<?
$sql1= "select * from tblTraining_detail t ,tblCompany c ,personal p ,tblTraining tt where t.com_id=c.com_id and t.t_id=tt.t_id and tt.teacherID=p.teacherID and tt.teacherID='$teacherID' group by com_name";
$result1 = mysql_query($sql1) or die ("select ไม่ได้");
$num1=mysql_num_rows($result1);
$comma=",";
if($num1>1){
?>
<td height="32" colspan="6" align="left">ณ จังหวัด<span class="style5">