|
pmagas -> RE: Can you - and how - check a database connection online? (1/27/2004 18:30:50)
|
I haven't put it on a Spooky diet yet - wanted to make sure it was stable first. <arghh..> Is this what you're looking for? Too much or too little? quote:
<!--webbot bot="DatabaseRegionStart" startspan s-columnnames="ID,ML_Number,Listing Price,Address,Address - City,Address - Zip Code,Area Number,Area Desc,Bedrooms,Bathrooms,Square Footage,Lot Size - Acres,Marketing Remarks,Style Desc,Property Type Desc,Address - Street Name,Address - Street Number,Age,directory,urlpath" s-columntypes="3,202,6,202,202,202,202,202,3,3,3,3,203,202,202,202,202,3,202,202" s-dataconnection="homes" b-tableformat="FALSE" b-menuformat="FALSE" s-menuchoice="ML_Number" s-menuvalue="ML_Number" b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="FALSE" i-ListFormat="1" b-makeform="FALSE" s-recordsource s-displaycolumns="ML_Number,Listing Price,Address,Area Desc,Bedrooms,Bathrooms,Square Footage,Lot Size - Acres,Marketing Remarks,Style Desc,urlpath" s-criteria s-order s-sql="SELECT * FROM homes WHERE ("Listing Price" >= ::From:: AND "Listing Price" <= ::To:: AND Bathrooms >= ::Bathrooms:: AND Bedrooms >= ::Bedrooms:: AND "Area Desc" = '::Area::' AND "Property Type Desc" = 'Condo/Cluster Coop') ORDER BY "Listing Price" DESC" b-procedure="FALSE" clientside SuggestedExt="asp" s-DefaultFields="From=75000&To=5000000&Bathrooms=1&Bedrooms=2&Area=1" s-NoRecordsFound="Sorry - no condos or lofts match your criteria today. Please try another search or request a Custom Home Search." i-MaxRecords="256" i-GroupSize="5" BOTID="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="BODY" local_preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00" align="left"><font color="#000000">Database Results regions will not preview unless this page is fetched from a Web server using a web browser. The section of the page from here to the end of the Database Results region will repeat once for each record returned by the query.</font></td></tr></table>" preview="<table border=0 width="100%"><tr><td bgcolor="#FFFF00" align="left"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr></table>" b-WasTableFormat="FALSE" --><!--#include file="_fpclass/fpdblib.inc"--> <% fp_sQry="SELECT * FROM homes WHERE (""Listing Price"" >= ::From:: AND ""Listing Price"" <= ::To:: AND Bathrooms >= ::Bathrooms:: AND Bedrooms >= ::Bedrooms:: AND ""Area Desc"" = '::Area::' AND ""Property Type Desc"" = 'Condo/Cluster Coop') ORDER BY ""Listing Price"" DESC" fp_sDefault="From=75000&To=5000000&Bathrooms=1&Bedrooms=2&Area=1" fp_sNoRecords="Sorry - no condos or lofts match your criteria today. Please try another search or request a Custom Home Search." fp_sDataConn="homes" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=5 fp_fTableFormat=False fp_fMenuFormat=False fp_sMenuChoice="ML_Number" fp_sMenuValue="ML_Number" fp_iDisplayCols=11 fp_fCustomQuery=True BOTID=0 fp_iRegion=BOTID %> <!--#include file="_fpclass/fpdbrgn1.inc"--> <!--webbot bot="DatabaseRegionStart" i-CheckSum="3358" endspan --> I generally focus on the red, since once we do the diet, most of the rest 'goes away.' I thought my problem might be in the 'Area' -- It's a text field and I have it equalling the description. I tried changing it to LIKE, but that didn't work either. The choices pull from another form - quote:
<form BOTID="0" METHOD="POST" ACTION="condosfound.asp" onsubmit="return FrontPage_Form2_Validator(this)" name="FrontPage_Form2"> <table BORDER="0"> <tr> <td colspan="2"><font color="#333300"><b>Create Your Search:</b></font></td> </tr> <tr> <td><font face="Verdana" size="3">From</font></td> <td><font face="Verdana" size="3"><!--webbot bot="Validation" S-Data-Type="Number" S-Number-Separators=",." --><input NAME="From" VALUE="75000" size="20"></font></td> </tr> <tr> <td><font face="Verdana" size="3">To</font></td> <td><font face="Verdana" size="3"><!--webbot bot="Validation" S-Data-Type="Number" S-Number-Separators=",." --><input NAME="To" VALUE="5000000" size="20"></font></td> </tr> <tr> <td><font face="Verdana" size="3">Bathrooms</font></td> <td><font face="Verdana" size="3"><!--webbot bot="Validation" B-Value-Required="TRUE" --><select size="1" NAME="Bathrooms" VALUE="<%=Request("Bathrooms")%>"> <option value="1" selected>1 or more</option> <option value="1.5">1.5 or more</option> <option value="2">2 or more</option> <option value="2.5">2.5 or more</option> <option value="3">3 or more</option> </select></font></td> </tr> <tr> <td><font face="Verdana" size="3">Bedrooms</font></td> <td><font face="Verdana" size="3"><!--webbot bot="Validation" B-Value-Required="TRUE" --><select size="1" NAME="Bedrooms" VALUE="<%=Request("Bedrooms")%>"> <option value="1">1 or more</option> <option value="2" selected>2 or more</option> <option value="3">3 or more</option> <option value="4">4 or more</option> <option value="5">5 or more</option> </select></font></td> </tr> <tr> <td><font face="Verdana" size="3">Area</font></td> <td><font face="Verdana" size="3"><!--webbot bot="Validation" B-Value-Required="TRUE" --><select size="1" NAME="Area" VALUE="<%=Request("Area")%>"> <option value="Affton">Affton</option> <option value="Bayless">Bayless</option> <option value="Brentwood">Brentwood</option> <option value="Clayton">Clayton</option> <option value="Crystal City">Crystal City</option> <option value="Desoto">Desoto</option> <option value="Eureka">Eureka</option> <option value="Ferguson-Florissant">Ferguson-Florissant</option> <option value="Festus">Festus</option> <option value="Fort Zumwalt North">Fort Zumwalt North</option> <option value="Fort Zumwalt South">Fort Zumwalt South</option> <option value="Fort Zumwalt West">Fort Zumwalt West</option> <option value="Fox C-6">Fox C-6</option> <option value="Francis Howell">Francis Howell</option> <option value="Francis Howell Cntrl">Francis Howell Central</option> <option value="Francis Howell North">Francis Howell North</option> <option value="Grandview">Grandview</option> <option value="Hancock Place">Hancock Place</option> <option value="Hazelwood Central">Hazelwood Central</option> <option value="Hazelwood East">Hazelwood East</option> <option value="Hazelwood West">Hazelwood West</option> <option value="Herculaneum">Herculaneum</option> <option value="Hillsboro">Hillsboro</option> <option value="Jennings">Jennings</option> <option value="Kirkwood">Kirkwood</option> <option value="Ladue">Ladue</option> <option value="Lafayette">Lafayette</option> <option value="Lindbergh">Lindbergh</option> <option value="Maplewood-Rchmnd Hts">Maplewood-Rchmnd Hts</option> <option value="Marquette">Marquette</option> <option value="Mehlville">Mehlville</option> <option value="Normandy">Normandy</option> <option value="Northwest">Northwest</option> <option value="Oakville">Oakville</option> <option value="Orchard Farm">Orchard Farm</option> <option value="Pacific/Meramec R-3">Pacific/Meramec R-3</option> <option value="Parkway Central">Parkway Central</option> <option value="Parkway North">Parkway North</option> <option value="Parkway South">Parkway South</option> <option value="Parkway West">Parkway West</option> <option value="Pattonville">Pattonville</option> <option value="Ritenour">Ritenour</option> <option value="Riverview Gardens">Riverview Gardens</option> <option value="Rockwood Summit">Rockwood Summit</option> <option value="Seckman">Seckman</option> <option value="St. Charles">St. Charles</option> <option value="St. Charles West">St. Charles West</option> <option value="St. Genevieve County">St. Genevieve County</option> <option value="St. Louis E of Grand">St. Louis E of Grand</option> <option value="St. Louis, North">St. Louis, North</option> <option value="St. Louis, SW">St. Louis, SW</option> <option value="St. Louis, W-Central">St. Louis, W-Central</option> <option value="University City">University City</option> <option value="Valley Park">Valley Park</option> <option value="Washington (St. Charles)">Washington (St. Charles)</option> <option value="Webster Groves">Webster Groves</option> <option value="Wellston">Wellston</option> <option value="Wentzville">Wentzville</option> <option value="Windsor">Windsor</option> </select></font></td> </tr> </table> <br> <input TYPE="Submit"><input TYPE="Reset"><!--webbot bot="SaveAsASP" CLIENTSIDE SuggestedExt="asp" PREVIEW=" " --> <p> </p> <input type="hidden" name="Property_Type" value="RESI"> </form> Sorry about the length here. Thanks for your help!!
|
|
|
|