<? /// build query /// include('../connect_db.php'); $sql = "SELECT fac_name,fac_head From faculty UNION SELECT dep_name,dep_dean From faculty,department"; /// perform quary /// $res = mysql_query($sql); if(!$res) { die ("You couldn't perform the query".mysql_error()); } ?> <table width="657" border="1" align="left"> <tr> <td width="31" height="25" align="center"><strong><h3>ลำดับ</h3></strong></td> <td width="108" align="center"><strong><h3>ชื่อคณะ</h3></strong></td> <td width="164" align="center"><strong><h3>คณบดี</h3></strong></td> <td width="110" align="center"><strong> <h3>ชื่อสาขา</h3></strong></td> <td width="111" align="center"><strong><h3>หัวหน้าสาขา</h3></strong></td> <td width="93" align="center"><strong><h3>ข้อมูลเพิ่มเติม</h3></strong></td> </tr> <? $i = 0; $j = 1; while ($result = mysql_fetch_row($res)){ $i++; ?> <tr> <td height="25" align="center"><?=$j?></td> <td><?=$result["fac_name"];?></td> <td><?=$result["fac_head"];?></td> <td><?=$result["dep_name"];?></td> <td><?=$result["dep_dean"];?></td> <td width="93" align="center"><a href = "adm_facdep_view.php?div_id=<? echo $result[0]; ?>"><img src="../images/edit.png" /></a></td> </tr> <? $j++; } ?> </table></div> <? mysql_close($db_connect); ?> <input type="hidden" name="hdnCount" value="<?=$i;?>"> </div></form>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง