 |
มาดูโค๊ดให้ทีคับแก้ไม่เปง คือโค๊ดข้างใต้คับเวลาเปิดมันจะเป็นตัวอักษรสี่เหลียมคับ |
|
 |
|
|
 |
 |
|
คือโค๊ดข้างใต้คับเวลาเปิดมันจะเป็นตัวอักษรสี่เหลียมคับhttp://gunhotnews.10gbfreehost.com/phpbbthaiver301/1.php
แก้ให้ที่คับ ขอโค๊ดที่แก้แล้วจะดีนะคับ ถ้ามาบอกผมว่าแก้ตรงนั้นตรงนี้ ผมไม่รู้เรืองคับ ขอบคุณคับ
<?
include("config.php"); // ใส่ path ตรงนี้ให้ถูก
$db=mysql_connect ($dbhost,$dbuser,$dbpasswd) or die ("Error!");
mysql_select_db("$dbname");
$qboard='select T.topic_id, T.topic_title, U.username, T.topic_time, T.topic_replies, T.topic_poster, P.post_username, T.topic_views, T.topic_replies
from '.$table_prefix.'topics as T
left join '.$table_prefix.'posts as P on T.topic_first_post_id=P.post_id
left join '.$table_prefix.'users as U on U.user_id=T.topic_poster
order by T.topic_last_post_id desc limit 12';
$rboard=mysql_query($qboard, $db) or die("Error".mysql_error());
?>
<table width="100%" align="center">
<tr>
<td class="header">หัวข้อ</td>
<td class="header">ผู้โพส</td>
<td class="header">ดู/ตอบ</td>
<td class="header">ผู้ตอบ</td>
<td class="header">วันที่</td>
</tr>
<?
while ($rowb=mysql_fetch_array($rboard)) {
echo '<tr>';
//echo '<td>'.$rowb[0].'</td>';
echo '<td><a href="viewtopic.php?t='.$rowb[0].'" target="_blank">'.substr($rowb[1], 0, 100).'</a></td>';
if($rowb[5]==-1) echo '<td><strong>'.$rowb[6].'</strong></td>';
else echo '<td><strong>'.$rowb[2].'</strong></td>';
echo '<td>'.$rowb[7].'/'.$rowb[8].'</td>';
if ($rowb[4]!=0) {
$qboard2='select U.username, P.post_time, P.poster_id, P.post_username
from '.$table_prefix.'posts as P
left join '.$table_prefix.'users as U on U.user_id=P.poster_id
where P.topic_id='.$rowb[0].' order by P.post_time desc limit 1';
$rboard2=mysql_query($qboard2, $db);
$rowb2=mysql_fetch_array($rboard2);
if($rowb2[2]==-1) echo '<td><strong>'.$rowb2[3].'</strong></td>';
else echo '<td><strong>'.$rowb2[0].'</strong></td>';
echo '<td>'.date("d.m.y", $rowb2[1]).' </td>';
}
else {
echo '<td>N/A</td>';
echo '<td>'.date("d.m.y", $rowb[3]).'</td>';
}
echo '</tr>';
}
?>
Tag : - - - -
|
|
 |
 |
 |
 |
Date :
16 ส.ค. 2551 00:55:11 |
By :
กัน |
View :
1237 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตรง
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
ให้แก้เป็น charset=tis-620 ครับผม
|
 |
 |
 |
 |
Date :
16 ส.ค. 2551 07:33:41 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณคับแต่ตรงข้างล่างหัวข้อยังอ่านไม่ออกเลยคับ ช่วยแก้ให้ทีนะคับ พึ่งหัดคับ
|
 |
 |
 |
 |
Date :
16 ส.ค. 2551 11:18:19 |
By :
กัน |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่มีคนแก้ได้เลยหรอคับ
|
 |
 |
 |
 |
Date :
19 ส.ค. 2551 18:27:45 |
By :
กัน |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?
include("config.php"); // ใส่ path ตรงนี้ให้ถูก
$db=mysql_connect ($dbhost,$dbuser,$dbpasswd) or die ("Error!");
mysql_select_db("$dbname");
msql_query("tis620");
|
 |
 |
 |
 |
Date :
2 ก.ย. 2551 19:32:17 |
By :
*-* |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โทดคับผิดๆ ต้องนี้
<?
include("config.php"); // ใส่ path ตรงนี้ให้ถูก
$db=mysql_connect ($dbhost,$dbuser,$dbpasswd) or die ("Error!");
mysql_select_db("$dbname");
mysql_query("SET NAMES tis620");
|
 |
 |
 |
 |
Date :
2 ก.ย. 2551 19:34:56 |
By :
*-* |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|