strlen($rows)) return $rows; $ishan1=0; $ishan2=0; for ($i=0;$i127 && $ishan1==0) { $ishan2=0; $ishan1=1; } if($ishan2==1) $ishan1=0; if (($i+1)==$cut_size) { if ($ishan2!=1) break; $temp_str.=$rows[$i]; break; } $temp_str.=$rows[$i]; } $temp_str.="..."; return $temp_str; } function OutDbStr( $rows , $view="" ) { global $keyword, $board_var; $rows[name] = stripslashes( $rows[name] ); $rows[email] = stripslashes( $rows[email] ); $rows[homepage] = stripslashes( $rows[homepage] ); $rows[subject] = stripslashes( $rows[subject] ); $rows[contents] = stripslashes( $rows[contents] ); if( $view ) { if( $view == "view" ) { if( !$board_var[html_ox] ) $rows[contents] = htmlspecialchars( $rows[contents] ); // 내용 Tag Change $rows[contents] = nl2br( $rows[contents] ); // 내용 개행문자 변경 $rows[contents] = str_replace( " ", "  ", $rows[contents] ); // 내용 공백문자 변경 $rows[contents] = str_replace( "\t", "    ", $rows[contents] ); // 내용 탭문자 변경 } } return $rows; // 변경한 레코드 배열 리턴 } function ConDb() { global $host_name, $user_name, $db_name , $user_passwd; $connect = mysql_connect( $host_name , $user_name , $user_passwd ) or ErrorMsg("DB Server connect failed"); mysql_select_db( $db_name , $connect ) or ErrorMsg("DB Connect Failed "); mysql_query("set names euckr", $connect); return $connect; } $connect = ConDb(); header("Content-Type: text/html"); ?> 다나 치과, 임플란트 전문, 성남시 분당구 서현동 소재, 치과 상식, 치료 안내
menu_top1.png menu_top2.png menu_top3.png menu_top4.png menu_top5.png

0 ) { $i=0; mysql_data_seek( $result , $i ); if($total >= 5){ for( $i = 0 ; $i<5 ; $i++) { $rows = @mysql_fetch_array($result); $rows2 = $rows[subject]; $rows = OutDbStr( $rows, "list" ); $rows3 = $rows[subject]; $reg_date = explode( " " , $rows[reg_date] ); echo ""; } else { echo "\n$rows[subject]"; } } } else { for( $i = 0 ; $i<$total ; $i++) { $rows = @mysql_fetch_array($result); $rows = OutDbStr( $rows, "list" ); $reg_date = explode( " " , $rows[reg_date] ); echo ""; } else { echo "\n$rows[subject]"; } } } } else { echo ""; } ?>
"; if( $rows[child] > 0 ) $image = "img/index_butt.jpg"; else $image = "img/index_butt.jpg"; if( $reg_date[0] == date("Y-m-d") ) $image = "img/index_butt.jpg"; echo "\n "; $rows[subject]=str_cut($rows[subject],36); if ( $rows[homepage] ) { echo "\n$rows[subject]$reg_date[0]
$reg_date[0]
"; if( $rows[child] > 0 ) $image = "img/index_butt.jpg"; else $image = "img/index_butt.jpg"; if( $reg_date[0] == date("Y-m-d") ) $image = "img/index_butt.jpg"; echo "\n "; $rows[subject]=str_cut($rows[subject],36); if ( $rows[homepage] ) { echo "\n$rows[subject]$reg_date[0]
$reg_date[0]

상담연락처는 031-702-2828 입니다.