묻고답하기

최근게시물에서 각기 스타일시트 적용을 결국은 못해서..
하나의 편법으로 자체 최근 게시물이 아닌 임의로 만든 최근 게시물에 클래스를 넣었습니다.
근데 자체 최근게시물을 사용할때는 홈페이지 로딩이 빨랐는데
이 소스를 사용하니까 홈페이지 로딩이 느려집니다..
어디가 잘 못 됐는지 고수님의 조언 부탁드립니다 (__)

-------------------------------------------------------------------------------
<link rel='stylesheet' type='text/css' href='http://zbike.net/style.css'> // 스타일 시트 불러오기/ 자체에서는 클래스 적용이 안되더군요 ㅜㅜ
<?
$connect=mysql_connect("localhost","아뒤","비번"); // MySQL DB에 접근
mysql_select_db("디비명"); // 사용할 DB를 선택
?>
<table align="center" cellpadding="0" cellspacing="0" width="270" bordercolordark="black" bordercolorlight="black">
    <tr>
        <td width="270" align="center" valign="top" height="33%">
            <p><?
$form= ("freeboard"); //제로보드의 게시판 이름 제로보드이름입니다. 게시판 만들때 쓴 이름.. ^^
$subject= ("freeboard"); //위에 꺼와 동일 입력 ^^
$제로보드위치 = "http://zbike.net/zboard"; //끝에 /는 붙이지 마세요. 절대~!

echo "<table width=270 border=0 cellpadding=1 cellspacing=0>";
$result=mysql_query("select * from zetyx_board_$form order by no desc limit 4") or die(mysql_error());
// 여기서 limit5 이건 리스트 제안입니다..  만약 10으로 한다면 10개의 게시물이 나타납니다

while($data=mysql_fetch_array($result))
{
$data[subject] = stripslashes($data[subject]);
$max = 36; //이건 제목의 길이를 제안.. 그뒤는 .....  이걸로 나타납니다!!
$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]";
}

//1일,3일,7일 NEW표시
$today = date("U", time());
$wtime = $today-$data[reg_date];

if($wtime <= 60*60*24){ $wtime = "<img src=http://zbike.net/image/main/main_class_arrow.gif border=0 valign=middle alt=하루도않된글>";}
//모든 아이콘 동일화 -_-;;
    elseif($wtime <= 60*60*24*2 && $wtime > 60*60*24){ $wtime = "<img src=http://zbike.net/image/main/main_class_arrow.gif alt=이틀된글 border=0>";}
//모든 아이콘 동일화 -_-;;
        else {$wtime = "<img src=http://zbike.net/image/main/main_class_arrow.gif alt=무지오래된글 border=0>";}
//모든 아이콘 동일화 -_-;;

echo "<tr onMouseOver=this.style.backgroundColor='white' onMouseOut=this.style.backgroundColor=''><td width=270><a href='$제로보드위치/view.php?id=$form&no=$data[no]' class='main' onfocus=this.blur()>$wtime  ".stripslashes($data[subject])."</a></td></tr>";}
echo "</table>";?></td>
    </tr>
</table>