\n" . "\n" . "\n"); exit; } } /* function getConnection() * µ¥ÀÌÅͺ£À̽º Á¢¼Ó ó¸® ºÎ */ function getConnection() { global $connectionID; global $id, $pass, $sid; $connectionID = Connect($id, $pass, $sid); } /* function selectData() * µ¥ÀÌÅÍ SELECT ¹× Ãâ·Â */ function display_selectData() { global $connectionID; global $num; global $title, $content, $wdate, $hit; $qry_Select = "SELECT title, content, write_date, hit FROM notice_board WHERE num=$num"; FetchOneRow($connectionID, $qry_Select, &$list); $title = $list[0]; $content = nl2br($list[1]); $wdate = $list[2]; $hit = $list[3]; } function update_Data() { global $connectionID; global $num; $qryStr_Update = "UPDATE notice_board SET hit = hit + 1 WHERE num = $num"; ExecuteSQL($connectionID, $qryStr_Update); } ?> // ID °ªÀÌ ÀÌÀü ÆäÀÌÁö·ÎºÎÅÍ Àü´ÞµÇ¾ú´ÂÁö È®ÀÎ. isID(); getConnection(); display_selectData(); update_Data(); ?>