$sql = "SELECT Dept.dept_name as deptn,Dept.dept_sec_name as depts, * FROM Dwg_Control
LEFT JOIN Dept ON Dwg_Control.sect_id = Dept.dept_sec_code
LEFT JOIN Source_Dwg ON Dwg_Control.source_id = Source_Dwg.source_code
WHERE dwg_id='$_GET[dwg_id]'";
$result = $cnx->query($sql);
$row = $result->fetch(PDO::FETCH_ASSOC);
//$sql=mysql_query("select * from tb_member");
//$num=mysql_num_rows($sql);
?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:x="urn:schemas-microsoft-com:office:excel"xmlns="http://www.w3.org/TR/REC-html40">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />