|
sentinel -> RE: MySQL Inner Join issue (10/13/2005 13:05:16)
|
Got this error: Error Type: Microsoft VBScript compilation (0x800A0401) Expected end of statement /forum_choice.asp, line 13, column 18 fp_sQry="fp_sQry="SELECT tbltopic.forum_id, tbltopic.topic_id, tblthread.thread_id, tblthread.topic_id FROM tbltopic INNER JOIN tblthread ON tbltopic.topic_id = tblthread.topic_id WHERE tbltopic.forum_id = "& Request.Form("forum_id") -----------------^ Here is the page that submits to the page <html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Forum</title>
</head>
<body>
<table width="100%" border="1">
<thead>
</thead>
<tbody>
<!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM tblforum"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=5 align=left width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Forum_ID=19&Forum_Desc=201&Forum_Name=201&Forum_Group=201&Security=201&"
fp_iDisplayCols=5
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<tr>
<td>
<%=FP_FieldVal(fp_rs,"Forum_ID")%> </td>
<td>
<%=FP_FieldVal(fp_rs,"Forum_Desc")%> </td>
<td>
<a href="forum_Choice.asp?Forum_ID=<%=FP_FieldURL(fp_rs,"Forum_ID")%>">
<%=FP_FieldVal(fp_rs,"Forum_Name")%></a> </td>
<td>
<%=FP_FieldVal(fp_rs,"Forum_Group")%> </td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</tbody>
</table>
</body>
</html>
|
|
|
|