connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); $res[webboard] = $db->select_query("SELECT * FROM ".TB_WEBBOARD." WHERE category='9' ORDER BY id DESC LIMIT 10"); while($arr[webboard] = $db->fetch($res[webboard])){ ?> closedb (); //??????????????????????? ?>
[+] : [ʵ] ".ThaiTimeConvert($arr[webboard][post_date],"")."\n";?> ¤س:   select_query("SELECT * FROM ".TB_WEBBOARD_COMMENT." WHERE topic_id=".$arr[webboard][id]." ORDER BY id DESC LIMIT 1 "); while($arr[ment] = $db->fetch($res[ment])){ ?> comment ش:num_rows(TB_WEBBOARD_COMMENT,"id"," topic_id='".$arr[webboard][id]."' "); NewsIcon(TIMESTAMP, $arr[webboard][post_date], "images/icon_new.gif"); if ($arr[webboard][post_date]!=$arr[webboard][update_date]) { UpdateIcon(TIMESTAMP, $arr[webboard][update_date], "images/icon/update.gif");} else {}; echo "[ อ่าน ".number_format($arr[webboard][pageview])." / ตอบ ".number_format($SumComm)." ]\n"; ?>