±×·±µ¥...
¹®Á¦°¡ ¹ß»ýÇß½À´Ï´Ù..
Á¦¸ñÀ» »Ì¾Æ¼ Ãʱâȸ鿡 »Ñ·È½À´Ï´Ù.
±Ùµ¥ Á¦¸ñÀ» Ŭ¸¯Çϸé ÇØ´ç °Ô½ÃÆÇÀ¸·Î °¡¼ Á¦¸ñÀ» Ŭ¸¯ÇÑ ±× ³»¿ëÀÌ ³ª¿Í¾ß Çϴµ¥...
¿Ö??? ±× ³»¿ëÀÌ ¾È³ª¿Ã±î¿ä?
¸ÞÀÎȸ鿡¼ Á¦¸ñÀ» Ŭ¸¯ÇÏ¸é ±× ³»¿ëÀÌ º¸À̴°ÍÀÌ ¾Æ´Ï¶ó ±× ³»¿ëÀÌ ÀÖ´Â °Ô½ÃÆÇÀ¸·Î
°¡¹ö¸³´Ï´Ù.
¿Ö ±×·²°¡¿ä????
--------------------------------------------------------------------------------
<?
mysql_connect("È£½ºÆ®","»ç¿ëÀÚID","ºñ¹Ð¹øÈ£");
mysql_select_db("DB");
$result=mysql_query("select * from zetyx_board_°Ô½ÃÆÇ¸í order by no desc limit 7") or die(mysql_error());
while($data=mysql_fetch_array($result))
{
$data[subject] = stripslashes($data[subject]);
$max = 30; //Á¦¸ñÀ» °¡Á®¿Ã ¶§ ¼ýÀÚº¸´Ù ±æ¸é ..À¸·Î Ç¥½ÃÇ϶ó´Â ¸í·ÉÀÔ´Ï´Ù.
$count = strlen($data[subject]);
if($count >= $max) {
for ($pos=$max;$pos>0 && ord($new[subject][$pos-1])>=127;$pos--);
if (($max-$pos)%2 == 0)
$data[subject] = substr($data[subject], 0, $max) . "..";
else
$data[subject] = substr($data[subject], 0, $max+1) . "..";
}
else {
$data[subject] = "$data[subject]";
}
echo " <style type=\"text/css\">
a { font: 2 ±¼¸²; text-decoration: none; color: black ; }
a:hover { text-decoration: underline; color: black ; }
</style>
<table cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"240\" >
<font size=2 color=black>[".date("m-d",$data[reg_date])."] <a href='../zboard/zboard.php?id=°Ô½ÃÆÇ¸í&no=$data[no]')>".stripslashes($data[subject])."</a></font>
</td>
</tr>
</table>";
}
mysql_close();
?>
-------------------------------------------------------------------------------- |
|