Parameter passing within a ASP page

N

Nick Halfpenny

Hi,

I’ve developed a ASP page that searches a database on our web server. I’ve
created a html form that passes parameters to a SQL statement on the ASP
page. Everything was working well until a few days ago, when the parameter
were still passed to the ASP page, but the data doesn’t seem to reach the SQL
statement.

In the ASP page, I’ve printed the parameter field to the screen so I know
the correct data is there. To investigate my problem, I’ve gone back to
basic’s. I’ve created a new ASP page using the wizard with FrontPage. I
allowed the wizard to create a parameter field that you can input directly on
screen, which then feeds through to the SQL. This all works fine.

I then removed the part of the script the allows you to do the input, and
replaced it with a static field as follows:

<%
Info="3"
response.write Info
%>

Although the data is held in the ‘Info’ field, the SQL statement doesn’t use
it !

Once I go back to passing parameters from a HTML form to a ASP page, the
Info field will be populated by using the request.querystring("Info")
function. I can’t understand why the page works fine if you use a ‘input’ on
the page, but doesn’t work when your passing parameters.

Any help would be appreciated.

Regards,

Nick

I’ve included the full ASP script below:

<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>Info</title>
</head>

<body>

<%
Info="3"
response.write Info
%>

<table width="100%" border="1">
<thead>
<tr>
<td><b>propref</b></td>
<td><b>houseno</b></td>
<td><b>proadd1</b></td>
<td><b>heatcode</b></td>
<td><b>bedrooms</b></td>
<td><b>proptypecode</b></td>
<td><b>area</b></td>
<td><b>offers</b></td>
<td><b>diff_in_weeks</b></td>
<td><b>voidstart</b></td>
<td><b>keyretdate</b></td>
<td><b>relettarget</b></td>
<td><b>actrelet</b></td>
<td><b>udd15</b></td>
<td><b>voidaltkey</b></td>
<td><b>voidsuffix</b></td>
<td><b>voidtype</b></td>
<td><b>eventbi</b></td>
<td><b>eventbidate</b></td>
<td><b>eventfcas</b></td>
<td><b>eventfcasdate</b></td>
<td><b>eventffl</b></td>
<td><b>eventffldate</b></td>
<td><b>sfacode</b></td>
<td><b>freetext</b></td>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-columntypes="129,129,129,129,2,129,200,2,2,135,135,135,135,129,3,2,129,129,135,129,135,129,135,129,200"
s-dataconnection="Academy_Live" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="0" b-makeform="TRUE" s-recordsource
s-displaycolumns="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-criteria s-order s-sql="SELECT * FROM Sol_voidlist where bedrooms=::Info::"
b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="Info="
s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="0"
botid="0" u-dblib="../../_fpclass/fpdblib.inc"
u-dbrgn1="../../_fpclass/fpdbrgn1.inc" u-dbrgn2="../../_fpclass/fpdbrgn2.inc"
tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" align="left"
width="100%"><font color="#000000">This is the start of a Database Results
region.</font></td></tr>" startspan --><!--#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 Sol_voidlist where bedrooms=::Info::"
fp_sDefault="Info="
fp_sNoRecords="<tr><td colspan=25 align=left width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Academy_Live"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&propref=129&houseno=129&proadd1=129&heatcode=129&bedrooms=2&proptypecode=129&area=200&offers=2&diff_in_weeks=2&voidstart=135&keyretdate=135&relettarget=135&actrelet=135&udd15=129&voidaltkey=3&voidsuffix=2&voidtype=129&eventbi=129&eventbidate=135&eventfcas=129&eventfcasdate=135&eventffl=129&eventffldate=135&sfacode=129&freetext=200&"
fp_iDisplayCols=25
fp_fCustomQuery=True
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="1022" --><tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="propref" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font
size="-1">&lt;&lt;</font>propref<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"propref")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="16642" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="houseno" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>houseno<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"houseno")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15922" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="proadd1" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>proadd1<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"proadd1")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15700" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="heatcode" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>heatcode<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"heatcode")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="16755" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="bedrooms" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>bedrooms<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"bedrooms")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="17010" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="proptypecode" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>proptypecode<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"proptypecode")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="35578" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="area" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>area<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"area")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="7276" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="offers" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>offers<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"offers")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="17141" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="diff_in_weeks" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>diff_in_weeks<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"diff_in_weeks")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="36706" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="voidstart" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>voidstart<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"voidstart")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="23933" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="keyretdate" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>keyretdate<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"keyretdate")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="30414" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="relettarget" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>relettarget<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"relettarget")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="31423" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="actrelet" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>actrelet<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"actrelet")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="16546" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="udd15" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>udd15<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"udd15")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="9919" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="voidaltkey" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>voidaltkey<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"voidaltkey")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="34450" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="voidsuffix" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>voidsuffix<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"voidsuffix")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="34338" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="voidtype" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>voidtype<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"voidtype")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="19247" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventbi" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>eventbi<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"eventbi")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="16468" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventbidate" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>eventbidate<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"eventbidate")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="33835" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventfcas" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>eventfcas<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"eventfcas")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="23073" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventfcasdate" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>eventfcasdate<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"eventfcasdate")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="37971" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventffl" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>eventffl<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"eventffl")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="18983" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="eventffldate" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>eventffldate<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"eventffldate")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="33572" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="sfacode" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>sfacode<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"sfacode")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15222" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="propref,houseno,proadd1,heatcode,bedrooms,proptypecode,area,offers,diff_in_weeks,voidstart,keyretdate,relettarget,actrelet,udd15,voidaltkey,voidsuffix,voidtype,eventbi,eventbidate,eventfcas,eventfcasdate,eventffl,eventffldate,sfacode,freetext"
s-column="freetext" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>freetext<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"freetext")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="19053" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="../../_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
align="left" width="100%"><font color="#000000">This is the end of a Database
Results region.</font></td></tr>" startspan --><!--#include
file="../../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="65064" --></tbody>
</table>

</body>

</html>
 
M

Michael Kintner

fp_sQry="SELECT * FROM Sol_voidlist where bedrooms=::Info::"

Why not change the line above to the line below:

fp_sQry="SELECT * FROM Sol_voidlist where bedrooms='" & Info & "'"

Mike
 
N

Nick Halfpenny

Hi Mike,

Tried what you have suggested, but the FrontPage only takes the first
portion of the fp_sQry.

Eg. fp_sQry="SELECT * FROM Sol_voidlist where bedrooms='"

The remaining bit of the query is ignored because it's outside the double
quotes !

Any other suggestions ?

Regards,

Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top