list.html À§Ä¡:Ãß°¡¸ñ·Ï-ºí·°ÆäÀÌÁö¼ö Ä®¶ó&Å©±â º¯°æ for($go_page=$first_page+1;$go_page<=$last_page;$go_page++){ //ºí·°ÆäÀÌÁö¼ö Ä®¶ó&Å©±â º¯°æ *½ÃÀÛ if($go_page==$page){ echo "[$go_page]";//go_page:ÇöÀçÆäÀÌÁö }else{ echo "[$go_page]"; } //ºí·°ÆäÀÌÁö¼ö Ä®¶ó&Å©±â º¯°æ *³¡ } search.html À§Ä¡:ÀÚ·á°Ë»öÈÄ ¸µÅ©¿¬°á $article_num $row[subject] $row[num] $row[name] $row[subject] $row[reg_date] $row[cnt] "; $article_num--; } ?> ::::::::::::::::::::::::: view.html À§Ä¡: ±Û¾´³¯Â¥   Á¢¼ÓIP  
°Ë»ö¸®½ºÆ® ¸®½ºÆ®    >¼ö Á¤ ::::::::::::::::::::::::::::::::::: -°ü·Ã¼Ò½º Àüüº¸±â ÆÄÀϸí: list.html New Document
MyBoard ver 1.0
"; $article_number--;// $atricle_number=$article_number-1; } ?>
¹ø È£ Á¦ ¸ñ ÀÌ ¸§ µî·Ï³¯Â¥ Á¶È¸¼ö
$article_number $subject $row[name] $row[reg_date] $row[cnt]

$i]"; } */ ?> // $num_per_block=5; //ºí·°³ª´©±â*** $total_block=ceil($total_page/$num_per_block); //ÅäÅ»ÆäÀÌÁö $block=ceil($page/$num_per_block); //ÇöÀçºí·° // 23/10=2.3 ->3 $first_page=$num_per_block *($block-1);//ù ³¡ÆäÀÌÁö°ª±¸ÇÔ $last_page=$num_per_block * $block; //¸¶Áö¸·ÆäÀÌÁö if($block>=$total_block){ $last_page=$total_page; } //echo "block --- $block
"; //echo "total_block --- $total_block
"; //echo "total_page --- $total_page
"; if($block>=$total_block){ $prev=$first_page; echo "[óÀ½]"; echo "[ÀÌÀü]"; } for($go_page=$first_page+1;$go_page<=$last_page;$go_page++){ //ºí·°ÆäÀÌÁö¼ö Ä®¶ó&Å©±â º¯°æ *½ÃÀÛ if($go_page==$page){ echo "[$go_page]";//go_page:ÇöÀçÆäÀÌÁö }else{ echo "[$go_page]"; } //ºí·°ÆäÀÌÁö¼ö Ä®¶ó&Å©±â º¯°æ *³¡ } if($block<$total_block){ $next=$last_page+1; echo "[´ÙÀ½]"; echo "[¸¶Áö¸·]"; } ?> ±Û¾²±â

::::::::::::::::::::::::::::::::: ÆÄÀϸí: search.html New Document
"; echo "search --- $search
"; $query="select * from board1 ";//°ø¹é " $endquery=" order by num desc";//" °ø¹é if($choice == "name"){ $fullquery=$query . "where name='$search'" . $endquery; }else if($choice == "subject") { $fullquery=$query . "where subject like '%$search%'" . $endquery; }else if($choice == "content") { $fullquery=$query . "where content like '%$search%'" . $endquery; } include "connect.php"; $result=mysql_query($fullquery); $article_num=mysql_num_rows($result);//°Ë»ö½Ã ¼ø¼­¸¦ 1¹øºÎÅÍ Ãâ·Â echo "°Ë»öµÈ °Ô½Ã¹° °¹¼ö --- $article_num
";//°Ë»ö½Ã Ãâ·ÂµÈ°¹¼öÆÄ¾Ç ?> °Ë»öµÈ °Ô½Ã¹° "; $article_num--; } ?>
°¹¼ö ¹øÈ£ À̸§ Á¦¸ñ µî·Ï³¯Â¥ Á¶È¸¼ö
$article_num $row[subject] $row[num] $row[name] $row[subject] $row[reg_date] $row[cnt]

ÀÌÀü :::::::::::::::::::::::::::::::: ÆÄÀϸí: view.html

"; include "connect.php"; //Á¶È¸¼ö Áõ°¡ $query="update board1 set cnt=cnt+1 where num='$num'"; $result=mysql_query($query); $query="select * from board1 where num='$num'"; $result=mysql_query($query); $row=mysql_fetch_array($result); $content=nl2br($row[content]); ?>
ÀÌ ¸§   Á¶È¸¼ö  
À̸ÞÀÏ   ȨÆäÀÌÁö  
Á¦ ¸ñ  
 
±Û¾´³¯Â¥   Á¢¼ÓIP  

°Ë»ö¸®½ºÆ® ¸®½ºÆ®    >¼ö Á¤    >»è Á¦
>
ÀÌ ¸§ ºñ¹Ð¹øÈ£
¸Þ ¸ð

"; } ?>
ÀÌ ¸§ ¸Þ ¸ð »è Á¦
$row[memoname] $row[memo] »èÁ¦
:::::::::::::::::::::::::::::::::::::::::::::::: -MYSQL------------------------------------- Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administrator>cd \ C:\>mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 to server version: 4.0.22-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +------------+ | Database | +------------+ | appledb | | bananadb | | grapedb | | index_test | | jsptestdb | | mysql | | test | +------------+ 7 rows in set (0.01 sec) mysql> mysql> use appledb; Database changed mysql> show tables; +-------------------+ | Tables_in_appledb | +-------------------+ | aaa | | bd_02 | | bd_3 | | board | | board1 | | memo | | mymemo | +-------------------+ 7 rows in set (0.00 sec) mysql> mysql> select subject from board1 limit 10; +-----------------------+ | subject | +-----------------------+ | subject | | subject | | wrgs | | Å×½ºÆ® | | 111111111111111 | | 222222222222 | | 333333333333333333333 | | sfgfg | | rtyrty | | ggdfgg | +-----------------------+ 10 rows in set (0.00 sec) mysql> mysql> mysql> exit Bye C:\>mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 74 to server version: 4.0.22-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> mysql> mysql> show databases; +------------+ | Database | +------------+ | appledb | | bananadb | | grapedb | | index_test | | jsptestdb | | mysql | | test | +------------+ 7 rows in set (0.00 sec) mysql> mysql> mysql> show databases; +------------+ | Database | +------------+ | 6vjcom | | appledb | | bananadb | | grapedb | | index_test | | jsptestdb | | mysql | | test | +------------+ 8 rows in set (0.00 sec) mysql> mysql> show databases; +------------+ | Database | +------------+ | 6vjcom | | appledb | | bananadb | | grapedb | | index_test | | jsptestdb | | mysql | | test | +------------+ 8 rows in set (0.01 sec) mysql> mysql> use 6vjcom Database changed mysql> show tables; +--------------------+ | Tables_in_6vjcom | +--------------------+ | agreement | | app09 | | auc_apps | | auc_goods | | auc_part | | auth | | bank | | board09 | | board_112 | | board_city | | board_family | | board_ijournal | | board_journal | | board_neighbor | | board_scratch | | buy_list | | com_info | | goods | | goods09 | | guestbook | | imsi_buy | | maker_logo | | member | | motor | | news_actor | | news_animal | | news_debut | | news_display | | news_economy | | news_gallery | | news_health | | news_history | | news_human | | news_international | | news_models | | news_museum | | news_musiction | | news_nataure | | news_politi | | news_record | | news_science | | news_society | | news_stars | | news_tallent | | notice | | part_info | | pds | | postcode | | wwwuser | +--------------------+ 49 rows in set (0.00 sec) mysql> mysql> select * from bank; Empty set (0.00 sec) mysql> select * from notice; Empty set (0.00 sec) mysql> select * from part_info; Empty set (0.00 sec) mysql> mysql> select * from wwwuser; Empty set (0.00 sec) mysql> mysql> PHP½ºÅ͵ð 2004 12 14 ¼Ò½ºÀÚ¼¼È÷ Á¤È®ÇÏ°Ôº¸±â (´õÀÚ¼¼È÷´Â ÇØ´ç¹®¼­¿¡¼­ ¿À¸¥Âʸ¶¿ì½º·Î ¼Ò½ºº¸±âÇϼ¼¿ä) http://www.6VJ.com/php/php1214.txt