link = mysql_connect($this->db_server, $this->db_username, $this->db_passwd) or die("can't connect to database"); mysql_select_db($this->db_name, $this->link); } function db_query($sql) { $this->result = mysql_query($sql); if (mysql_num_rows($this->result) > 0) { return($this->result); } else { return(false); } } function db_query_page($sql, $page) { $this->result = mysql_query($sql); $this->all_record_count = mysql_num_rows($this->result); $this->page_count = ceil($this->all_record_count/$this->page_size); $this->show_page = ($page - 1) * $this->page_size; $sql = $sql . " limit $this->show_page,$this->page_size"; $this->result = mysql_query($sql); // Êèǹáºè§Ë¹éÒ if (mysql_num_rows($this->result) > 0) { return($this->result); } else { return(false); } } function set_page_size($input_page_size) { if ($input_page_size != "" && is_numeric($input_page_size) == true) { $this->page_size = $input_page_size; } } function get_page_count() { return($this->page_count); } function get_all_record_count() { return($this->all_record_count); } function db_update($sql) { $this->result = mysql_query($sql); return(true); } function db_fetch($input_result) { return(mysql_fetch_array($input_result)); } function db_count($input_result) { if ($input_result != false) { return(mysql_num_rows($input_result)); } else { return(0); } } function db_close() { return(mysql_close($this->link)); } } ?> : : : สมาคมจิตแพทย์แห่งประเทศไทย : : :
0) { include("menu_member.php"); } } if ($l=="en") { include"e_menu.php"; }else{ include"menu.php"; } ?>

กิจกรรม





จำนวนผู้เยี่ยมชม
$i_since[$l]
"; ?>

Best view :
1024x768 with IE6
Firefox 2.0 +


EOD; }else{ print << EOD; } ?>
"; }else{ $show_image1=""; } // ปรับภาษา $e_title = $result1[e_title]; $lang = $result1[lang]; if ($lang=='t') { if ($l=='en') { $lang = "[Thai]"; if (!empty($e_title)) { $title1 = $e_title; } }else{ $lang=""; } }elseif ($lang=='e') { //$lang = "[Eng]"; if ($l=='en') { $lang = "[Eng]"; $l_tag="&l=en"; if (!empty($e_title)) { $title = $e_title; } }else{ $lang=""; $l_tag=""; } }else{ $lang=""; $l_tag=""; } echo""; echo""; echo""; echo""; $i1++; } ?>
$title1 $lang".$show_image1."

Brain, Behaviour
and Mind 2010
11-13 December 2010, Hong Kong


จุลสารจิตแพทย์สัมพันธ์
ปีที่ 12 ฉบับที่ 3
ก.ย. - ธ.ค. 52


ตำราโรคจิตเภท
จัดพิมพ์โดย
สมาคมจิตแพทย์แห่งประเทศไทย