Ȩ>ÄÄÇ»ÅÍÀ̾߱â
logo_01.gif


TOTAL ARTICLE : 35, TOTAL PAGE : 1 / 2
±¸ºÐ À¥ÀÏ¹Ý | ű×-¼Ò½º | Á¦·Îº¸µå | ±×´©º¸µå |
Á¦·Îº¸µå : ÃÖ±Ù °Ô½Ã¹°º¸±â ¼Óµµ ºü¸£°Ô ¸¸µé±â
 ¿À¿¹    | 2005¡¤06¡¤02 15:19 | HIT : 3,385 | VOTE : 124
ÃÖ±Ù °Ô½ÃÆÇ ¼Óµµ ºü¸£°Ô ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù.


ȨÆäÀÌÁö¿¡ Á¦·Îº¸µå °Ô½ÃÆÇÀ» ÀÌ¿ëÇÏ¿© php ÇÁ·Î±×·¥À» ¸¹ÀÌ ÇϽʴϴÙ.
ƯÈ÷ °Ô½Ã¹°ÀÌ ¸¹¾ÆÁú ¼ö·Ï ÃÖ±Ù °Ô½Ã¹°À» ·ÎµåÇϴµ¥ ½Ã°£ÀÌ ¿À·¡ °É¸²À» ¸¹ÀÌ ´À³¢½Ã°Ô µÉ °ÍÀÔ´Ï´Ù.
±× ¹®Á¦¸¦ ÇØ°áÇϱâ À§ÇØ ¿©·¯°¡Áö·Î ¾Ë¾Æ º¸¾Ò´õ´Ï ¿øÀÎÀº ¹Ù·Î select ¹®¿¡¼­ »ç¿ëÇÏ´Â order by ¿¡ ÀÖ¾ú½À´Ï´Ù.

¿¹) select * from zetyx_board_free where is_secret=0 and father=0 order by no desc limit 10

order by ¿¡ ÀÇÇؼ­ °Ô½Ã¹°ÀÌ Á¤·ÄÇϴµ¥ °É¸®´Â ½Ã°£Àº n^2 (n ÀÇ Á¦°ö) ¿¡ ºñ·ÊÇÕ´Ï´Ù.

Áï, °Ô½Ã¹°ÀÌ 10 °³ÀÏ °æ¿ì 100 ¿¡ ÇØ´çÇÏ´Â ½Ã°£ÀÌ °É¸°´Ù¸é, °Ô½Ã¹°ÀÌ 1000°³ÀÎ °æ¿ì 1,000,000 ¿¡ ÇØ´çÇÏ´Â ½Ã°£ÀÌ °É¸°´Ù´Â °ÍÀÌÁÒ.

½ÇÁ¦·Î ÃÖ±Ù °Ô½Ã¹° ¹øÈ£ ( no Çʵå) °¡ 4000 ¹øÀÎ °Ô½Ã¹°ÀÇ ÃÖ±Ù ¸®½ºÆ®¸¦ ±¸ÇØ¿À´Âµ¥ 10ÃÊ³Ñ°Ô °É¸° Àûµµ ÀÖ¾ú½À´Ï´Ù. (Çѹø ±¸ÇÑ ´ÙÀ½¿¡´Â DB ¿¡ ij½Ã°¡ ÀúÀåµÇ¾î ºü¸£°Ô ±¸ÇÏÁö¸¸...)

ÀÌ·± ¹®Á¦¸¦ ÇØ°áÇϱâ À§Çؼ­ °¡Àå ÃÖ±ÙÀÇ °Ô½Ã¹° ¸î°³¸¦ °¡Á®¿Í¼­ ±× °Í¿¡ ´ëÇؼ­ order by ¸¦ Àû¿ëÇÏ´Â ¹æ¹ýÀ¸·Î ¼Óµµ¸¦ Çâ»ó ½Ãų ¼ö ÀÖ½À´Ï´Ù.

¾Æ·¡ÀÇ ³»¿ëÀ» Àû¿ëÇÑ µÚ¿¡´Â ¾öû³­ È¿°ú¸¦ º¸¾Ò½À´Ï´Ù. °ÅÀÇ ´©¸£ÀÚ¸¶ÀÚ È­¸éÀÌ ¶ã Á¤µµÀÇ ¼Óµµ Çâ»óÀ» °¡Á®¿Ô½À´Ï´Ù.

Á¦·Îº¸µå °Ô½ÃÆÇÀ» »ç¿ëÇÏ½Å´Ù¸é ²À Àû¿ëÇϼż­ ȨÆäÀÌÁö 󸮼ӵµµµ Çâ»ó½ÃÅ°½Ã°í, ¼­¹ö ºÎÇϵµ ÁÙ¿© ÁݽôÙ.

--------------------------------------------------------------------

outlogin.php ÀÇ print_bbs ÇÔ¼ö¿¡ ÆĶõ »öÀ¸·Î Ç¥½ÃµÈ ºÎºÐÀ» »ðÀÔÇÏ½Ã¸é µË´Ï´Ù.


function print_bbs(...)

...

if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;

$result = mysql_query("select * from $t_board"."_$id where is_secret=0 and father=0 order by no desc limit $num", $connect) or die(mysql_error());

----------------------------------------------------------------------

function print_bbs(...)

...

if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;

// speed up by hankawi
$tmp = mysql_fetch_array(mysql_query("select max(no) from $t_board"."_$id"));
$max_no = $tmp[0];
if ($max_no > 500) { // °Ô½Ã¹° °³¼ö°¡ 500°³ ÀÌ»óÀ϶§¸¸
$mylimit = $max_no - 100; // ÃÖÁ¾ 100°³¸¦ ´ë»óÀ¸·Î
$speedup = "no>$mylimit and";
} else {
$speedup = "";
}

$result = mysql_query("select * from $t_board"."_$id where ".$speedup." is_secret=0 and father=0 order by no desc limit $num", $connect) or die(mysql_error());
//


ÁÖÀÇ ÇϽǰÍÀº $id where°ø¹é".$speedup."°ø¹éis_secret=0 °ø¹éºÎºÐÀÔ´Ï´Ù.
¼£·Ò~
³­! ÀÚÀ¯ÀÎ...
  
35 Á¦·Îº¸µå   mysql 4.1¿¡¼­ Á¦·Îº¸µåÀÇ È£È¯¼º ¹®Á¦ ÇØ°á  ¿À¿¹ 16¡¤01¡¤15 387 35
34 Á¦·Îº¸µå   Æ÷¿öµù ÈÄ ·Î±×ÀÎ ¾ÈµÇ´Â ¹®Á¦ 100% ÇØ°á¹ý  ¿À¿¹ 06¡¤04¡¤23 1954 55
33 Á¦·Îº¸µå   Á¦·Îº¸µå °ü¸®ÀÚ ºñ¹ø Àؾî¹ö·ÈÀ»¶§  ¿À¿¹ 11¡¤06¡¤28 1876 59
32 Á¦·Îº¸µå   Æ¯Á¤ ȸ¿ø»çÁø Ãâ·Â ¾ÈµÇ´Â ¹®Á¦  ¿À¿¹ 06¡¤05¡¤01 1691 63
31 Á¦·Îº¸µå   ÃֱٰԽù°¿¡¼­ more ¸µÅ©½ÃÅ°´Â ¹æ¹ý  ¿À¿¹ 06¡¤01¡¤14 3088 66
30 Á¦·Îº¸µå   [PHP]°Ô½ÃÆÇ¿¡¼­ ¹®ÀÚ¿­ ÀÚ¸£±â ÇÔ¼ö  ¿À¿¹ 05¡¤11¡¤16 1814 68
29 Á¦·Îº¸µå   ÃֱٰԽù°¿¡ ´ä±Û°ú ºñ¹Ð±Û Ç¥½ÃÇÏ±â  ¿À¿¹ 06¡¤12¡¤26 2438 68
28 Á¦·Îº¸µå   »õ°èÁ¤ ÀÌ»çÇÒ¶§, ±×´ë·Î ¿Å±â±â - DB¹é¾÷,º¹±¸, data¹é¾÷,º¹±¸ ¹æ¹ý, ±ÇÇѼ³Á¤  ¿À¿¹ 07¡¤03¡¤10 2004 68
27 Á¦·Îº¸µå   Á¦·Îº¸µå ½ºÆÔ Â÷´ÜÇÏ±â  ¿À¿¹ 07¡¤05¡¤03 3600 72
26 Á¦·Îº¸µå   ±×¸² ÆÄÀÏ¸í¿¡ ÇѱÛÀÌ Æ÷Ç﵃ °æ¿ì ¿µ¹®ÀÚ, ¼ýÀÚ·Î À̸§ ÀÚµ¿ º¯°æÇÏ±â  ¿À¿¹ 06¡¤07¡¤03 2128 77
25 Á¦·Îº¸µå   ÃÖ°í °ü¸®ÀÚ ¾ÆÀ̵ð, ºñ¹Ð¹øÈ£ ÀÒ¾î¹ö·ÈÀ»¶§  ¿À¿¹ 06¡¤08¡¤21 1931 77
24 Á¦·Îº¸µå   Á¦·Îº¸µå °Ô½Ã¹° ¼ø¼­ ¹Ù²Ù±â  ¿À¿¹ 06¡¤06¡¤19 1928 79
23 Á¦·Îº¸µå   ÃÖ±Ù °Ô½Ã¹°À» ³ªÅ¸³»´Â ¿ø¸®¿Í ¹æ¹ý  ¿À¿¹ 06¡¤05¡¤27 1827 81
22 Á¦·Îº¸µå   °Ô½ÃÆÇ °Ô½Ã¹° ¹Ø¿¡ ȸ¿ø»çÁø Ãâ·ÂÇÏ±â  ¿À¿¹ 05¡¤09¡¤13 1908 82
21 Á¦·Îº¸µå   È¸¿ø»çÁø ¸®»çÀÌÁî  ¿À¿¹ 05¡¤09¡¤14 1844 94
20 Á¦·Îº¸µå   GD°Ô½ÃÆÇÀÇ ½æ³×ÀÏÀ» ÀÌ¿ëÇØ °Ö·¯¸® ÃÖ±ÙÆÄÀÏ ºü¸£°Ô º¸¿©ÁÖ±â  ¿À¿¹ 05¡¤06¡¤08 2024 117
Á¦·Îº¸µå   ÃÖ±Ù °Ô½Ã¹°º¸±â ¼Óµµ ºü¸£°Ô ¸¸µé±â  ¿À¿¹ 05¡¤06¡¤02 3385 124
18 Á¦·Îº¸µå   ¹Ì´ÏÀ§´Ï ¿¡µðÅÍ FAQ  ¿À¿¹ 07¡¤10¡¤31 5640 129
17 Á¦·Îº¸µå    [ÆÁ]°Ô½Ã¹° ÀÛ¼º½Ã ³»¿ëÀ» º¹»çÇØÁÖ±â  ¿À¿¹ 05¡¤06¡¤21 2230 131
16 Á¦·Îº¸µå   DQ Revolution 1.8.p9 ÃÖ±Ù°¶·¯¸®¿¡ ½æ³×ÀÏ ºÒ·¯¿À±â  ¿À¿¹ 09¡¤03¡¤20 3722 153
12
Copyright 1999-2024 Zeroboard / skin by GGAMBO