ย้ายคำสั่ง include "board/SSI.php" ไปไว้บรรทัดแรกสุดครับ
คำสั่ง include "board/SSI.php" ผมหาไม่เจออะครับ
ผมใช้โค๊ดนี้ครับ
<?php require("/home/00000/public_html/webboard/SSI.php"); ?>
<html>
<head>
<meta http-equiv="Content-Language" content="th">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="..">
<title>..</title>
<link href="nknfe.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th,tr,iframe {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #595959;
.style23 {
font-size: 12px;
font-weight: bold;
}
.style2 {font-size: 12px}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
</script>
</head>
<body bgcolor="#F6F4F5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td target="_self"><?php ssi_welcome(); ?></td>
</tr>
</table>
<table width="99%">
<tr>
<td width="35%" class="style2"><div align="right">20 โพสล่าสุด จากกระดานสนทนา</div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td target="_self"><div align="center">
<?php ssi_recentTopics(20); ?>
</div></td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td target="_self"><?php ssi_logOnline(); ?></td>
</tr>
</table>
</body>
</html>
แล้วผมก็ใช้ iframe ดึงไปหน้าแรก ครับ
<iframe src="http://xxxx.com/showtopics.php" name="newtopics" frameBorder="0" width="965" height="500" scrolling="no"></iframe>
พอดีผมทำตามที่นี่อะครับ
วิธีดึงกระทู้ล่าสุดมาแสดงที่หน้าแรกของเว็บ ขอบคุณครับ รบกวนด้วยครับ