Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,030

HOME > ASP > ASP Forum > ช่วยดูโค๊ดและแก้ไขให้หน่อยนะ Thank You! อยากรู้ว่ามันผิดตรงไหนบ้างช่วยแก้ไขให้หน่อยเพราะเพิ่มการแบ่งหน้าของเว็บบอร์ดเข้ามา



 

ช่วยดูโค๊ดและแก้ไขให้หน่อยนะ Thank You! อยากรู้ว่ามันผิดตรงไหนบ้างช่วยแก้ไขให้หน่อยเพราะเพิ่มการแบ่งหน้าของเว็บบอร์ดเข้ามา

 



Topic : 004403

Guest




อยากรู้ว่ามันผิดตรงไหนบ้างช่วยแก้ไขให้หน่อยเพราะเพิ่มการแบ่งหน้าของเว็บบอร์ดเข้ามา ตอนที่ไม่ได้เพิ่มการแบ่งหน้าใช้ได้ปกติดีไม่มีerror พอเอาโค๊ดแบ่งหน้าเข้ามาก็เกิดerrorแต่ไม่รู้ว่ามันผิดตรงไหน ถ้าเป็นไปได้ช่วยแก้ให้ใช้ได้ด้วยนะ (เพิ่งหัดทำนะ อย่าว่ากันนะถ้าหากว่ามันมั่วไปหน่อย)

<%@ LANGUAGE="VBSCRIPT" %>

<!--#include file =conn.inc-->

<html>
<head>
<title>:: WEBBOARD ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874"><style type="text/css">
<!--
body,td,th {
font-family: MS Sans Serif;
font-size: x-small;
}
body {
background-color: #668FB9;
}
a:hover {
color: #FF6600;
}
.style1 {
font-family: "MS Sans Serif";
font-size: x-small;
}
-->
</style></head>

<link rel=stylesheet href="main.css">
<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
<div align=center> <img src="../IMAGE/Logo.jpg" width="780" height="191" border="0" usemap="#MapMap">
<map name="MapMap">
<area shape="rect" coords="400,173,458,191" href="../Data/data.htm">
<area shape="rect" coords="231,173,318,191" href="../Rules/rules.htm">
<area shape="rect" coords="318,172,399,188" href="bbs.asp">
<area shape="rect" coords="7,171,74,190" href="../Aboutus/aboutus.htm">
<area shape="rect" coords="457,173,513,196" href="../Contact/contact.htm">
<area shape="rect" coords="158,173,233,191" href="../Hotissue/hotissue.htm">
<area shape="rect" coords="73,172,156,190" href="../New/new.htm">
</map>
<table cellpadding=0 cellspacing=0 width=780 border=0>
<tr>
<td align=right><a href="bbs_post.asp"><br>
<span class="style1">สร้างข้อความใหม่</span></a><span class="style1">&gt;&gt;</span></td>
</tr>
</table>
<br>


<table cellpadding=2 cellspacing=1 width=780 border=0>
<tr align=center height=25 bgcolor=#ffcc00>
<td width=85 class="style1">ลำดับที่</td>
<td width=380 class="style1">ชื่อเรื่อง</td>
<td width=110 class="style1">วันที่ส่ง</td>
<td width=32 class="style1">อ่าน</td>
<td width=32 class="style1">ตอบ</td>
<td width=110 class="style1">ตอบล่าสุด</td>
</tr>
<%
sql="select * from bbs where "
sql=sql&" topic_id=reply_id "
sql=sql&" order by date_post desc"
set rs=Conn.Execute(sql)
Rs.open sql,conn,1,3
totalrows = 0
if not Rs.eof and not Rs.bof then
do while not rs.eof
TotalRows1 = Rs.Recordcount
Rs.Pagesize =3
TotalPages = Rs.Pagecount
PageNo=1
if Request("PageNo") <> "" then
PageNo=Request("PageNo")
end if
Rs.Absolutepage = PageNo
end if
%>
<%
if not Rs.eof then
RowCount = 1
While NOT Rs.EOF and RowCount <= Rs.Pagesize
%>
<tr valign=top align=center bgcolor=f4f4f4>
<td width="85" class="style1"># <%=rs("topic_id")%></td>
<td width="380" align=left class="style1"><b><a href=bbs_open.asp?id=<%=rs("topic_id")%>><%=rs("title")%></a></b><br>
ผู้ส่ง <%=rs("poster")%>
</td>
<td width="110" class="style1"><%
response.write formatdatetime(rs("date_post"),1)&"<br>"
response.write formatdatetime(rs("date_post"),4)%></td>
<td width="32" class="style1"><%=rs("reads")%></td>
<td width="32" class="style1"><%=ctopic(rs("topic_id"))%></td>
<td width="110" class="style1"><%
if datediff("s",rs("date_reply"),rs("date_post"))=0 then
response.write "<br>"
else
response.write formatdatetime(rs("date_reply"),1)&"<br>"
response.write formatdatetime(rs("date_reply"),4)&"<br>"
if rs("post_reply")<>"" then
response.write "["&rs("post_reply")&"]"
end if
end if
%></td>
</tr>
<%
RowCount = RowCount + 1
rs.movenext
Wend
loop
else
response.write "<tr height=60><td colspan=6 align=center bgcolor=#f4f4f4>ไม่พบข้อความในฐานข้อมูล.</td></tr>"
end if
set rs=nothing
%>
</table>
<br>
<table width="780" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7">หน้าที่
<%
for P_i = 1 to TotalPages
Response.Write "<a href=""bbs.asp?PageNo="&P_i&""">"
if P_i = (PageNo+1)-1 then
Response.Write "<font size=""1"" color=#FF0099>"
else
Response.Write "<font size=""1"" color=#000000>"
end if
Response.Write "[" & P_i & "]" & "</font></a> "
next
%></td>
</tr>
</table>
</div>
</body>
</html>
<%
function ctopic(x)
ctopic=0
sqlc="select count(reply_id) as topic from bbs where cstr(topic_id)='"&x&"' "
set rsc=Conn.Execute(sqlc)
if not rsc.eof then
ctopic=rsc("topic")-1
end if
set rsc=nothing
end function
%>


Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 17 มิ.ย. 2548 11:40:13 By : modx777 View : 15692 Reply : 9
 

 

No. 1



โพสกระทู้ ( 422 )
บทความ ( 0 )



สถานะออฟไลน์


ดูแล้วอ่ะ..แต่ขี้เกียจไล่ทีละบรรทัดน่ะ..มันยาวอ่ะ..เอา error มาให้ดูด้วยจิ






Date : 17 มิ.ย. 2548 13:14:42 By : นายกระจอก
 


 

No. 2

Guest


มันฟ้องว่า

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/bbs/bbs.asp, line 74
end if


จาก modx777
Date : 17 มิ.ย. 2548 13:21:43 By : modx777
 

 

No. 3

Guest


มันฟ้องว่า

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/bbs/bbs.asp, line 74 ------------- แล้วมันตรงไหนล่ะ ชี้ให้ดูหน่อย
end if



Date : 17 มิ.ย. 2548 17:08:21 By : oreo
 


 

No. 4

Guest


<%
sql="select * from bbs where "
sql=sql&" topic_id=reply_id "
sql=sql&" order by date_post desc"
set rs=Conn.Execute(sql)
Rs.open sql,conn,1,3
totalrows = 0
if not Rs.eof and not Rs.bof then
do while not rs.eof
TotalRows1 = Rs.Recordcount
Rs.Pagesize =3
TotalPages = Rs.Pagecount
PageNo=1
if Request("PageNo") <> "" then
PageNo=Request("PageNo")
end if
Rs.Absolutepage = PageNo
end if----------------------------------------------error ตรงนี้
%>
Date : 18 มิ.ย. 2548 10:27:17 By : modx777
 


 

No. 5

Guest


ลองเปลียน บรรทัด Rs.open sql,conn,1,3
เป็น Rs.open sql,conn,3,3
ดูครับ

Date : 19 ก.ค. 2548 09:22:59 By : redsnowdevil
 


 

No. 6

Guest


<a href=" http://polener.siamforum.com/ "> soma carisoprodol </a> carisoprodol online
<a href=" http://umasef.siamforum.com/ "> lorazepam side effects </a> lorazepam side effects
<a href=" http://stashil.siamforum.com/ "> buy diazepam </a> diazepam no prescription
<a href=" http://weberki.siamforum.com/ "> phendimetrazine </a> phendimetrazine
<a href=" http://hotsandra.siamforum.com/ "> ambien </a> ambien side effects
<a href=" http://based.siamforum.com/ "> xanax addiction </a> xanax side effects
<a href=" http://sakilas.siamforum.com/ "> meridia reviews </a> meridia side effects
<a href=" http://lemans.siamforum.com/ "> hydrocodone apap </a> hydrocodone online
<a href=" http://advan.siamforum.com/ "> tramadol side effects </a> tramadol hcl
<a href=" http://borens.siamforum.com/ "> viagra uk </a> viagra pill
<a href=" http://bontons.siamforum.com/ "> viagra online </a> generic viagra
<a href=" http://fernovin.siamforum.com/ "> phentermine side effects </a> phentermine 37.5 mg
<a href=" http://kooller.siamforum.com/ "> adipex </a> adipex without prescription
<a href=" http://hrebert.siamforum.com/ "> ambien online </a> generic ambien
<a href=" http://labrajin.siamforum.com/ "> buy adipex online </a> buy adipex online
<a href=" http://sevaslav.siamforum.com/ "> buy alprazolam </a> alprazolam without prescription
<a href=" http://poler.siamforum.com/ "> buy fioricet </a> generic fioricet
<a href=" http://between.siamforum.com/ "> buy valium online </a> valium side effects
<a href=" http://beteruh.siamforum.com/ "> cialis online </a> generic cialis
<a href=" http://gentif.siamforum.com/ "> buy levitra online </a> levitra
Date : 24 ม.ค. 2550 23:38:36 By : retferbewe
 


 

No. 7

Guest


ผมเป็นเหมือนกัน error
คล้ายกับเเบบนี้อะ
เเก้อย่างไรครับ
ดูโค้ดเเล้วมันก้อไม่น่าจะผิด

Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/ReportOffDay.asp, line 189
wend
Date : 13 ธ.ค. 2550 14:40:40 By : ไข่น้อย
 


   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดูโค๊ดและแก้ไขให้หน่อยนะ Thank You! อยากรู้ว่ามันผิดตรงไหนบ้างช่วยแก้ไขให้หน่อยเพราะเพิ่มการแบ่งหน้าของเว็บบอร์ดเข้ามา
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่