Ãֽűۿ¡ °øÁö»çÇ× Ç×»ó º¸À̱â
¿î¿µÀÚ 05-01-21 21:48
 http://sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&sselect=wr_sub¡¦, HIT:5
1. lib/latest.lib.php¿¡¼­ ´ÙÀ½À» ¼öÁ¤Çϼ¼¿ä
  ±×´©º¸µå ÆÐÄ¡½Ã¿¡ Ç×»ó ¼öÁ¤ÇÏ¼Å¾ß ÇÕ´Ï´Ù.

¼öÁ¤Àü :
   
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_id desc limit 0, $rows ";


¼öÁ¤ÈÄ :

$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0 or (wr_comment = 0 and wr_notice = -1)
order by wr_notice, wr_id desc limit 0, $rows ";

2. Ãֽűۿ¡¼­ °øÁö»çÇ× bold ó¸®Çϱâ
ÃÖ±Ù±Û ½ºÅ² µð·ºÅ丮¿¡ ÀÖ´Â latest.skin.php ÆÄÀϼöÁ¤
µ¥ÀÌŸ°¡ °øÁö»çÇ×ÀÎÁö¸¦ üũÇÏ¿© °øÁö»çÇ×À̸é Á¦¸ñ¿¡ <b>Á¦¸ñ</b>À» ³Öµµ·Ï ´ÙÀ½Ã³·³ ¼öÁ¤Çϼ¼¿ä.

¼öÁ¤Àü :
 
<?=$list[$i][subject]?>


¼öÁ¤ÈÄ :

<?
if($list[$i][wr_notice]) echo "<b>{$list[$i][subject]}</b>";
else echo "{$list[$i][subject]}";
?>



// °øÁö Ç¥½ÃÇϱâ

<?
if($list[$i][wr_notice]) echo "[°øÁö] {$list[$i][subject]}";
else echo "{$list[$i][subject]}";
?>