Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Miss Jo #1
Help Recordset paging
Hi I can't seem to get my recordset navigation bar to work. I am getting the
following error:-
Variable COUNTRYNAME is undefined.
The error occurred in D:\Inetpub\wwwneuops\contacts_results.cfm: line 4
2 : <cfparam name="PageNum_rs_GetCResults" default="1">
3 :
4 : <cfif #countryname# neq "Select One" and #locationname# neq "Select One"
and #post# neq "Select One">
5 : <cfquery name="rs_GetCResults" datasource="Locations_details">
6 : SELECT *
The variable countryname is defined for the first 5 results are shown? Any
suggestions?
Miss Jo Guest
-
PHP Recordset Paging problem
I am trying to set up record paging using the simple <<Previous Next>> setup. However, when I click the Next>> link, it doesn't show the rest of the... -
Recordset paging problem
I'm stuck on this one My recordset paging wont work. I've done a search page with a form and a table in it to post 2 values to the result page.... -
Help With Recordset paging
I am trying to set up a website with my honeymoon and wedding picts for everyone to look at. and I am using CFMX to pull photos and captions from a... -
Recordset Paging
Hi there, well, I know how to use this server behavior, but now I've a little problem, I've 3 documents, one to filter the results, one to show the... -
paging through recordset
http://www.google.ca/search?q=asp+recordset+paging+tutorial&ie=UTF-8&oe=UTF-8&hl=en&meta= http://www.asp101.com/articles/recordsetpaging/index.asp... -
-
Miss Jo #3
Re: Help Recordset paging
I think its because I am using if else statements & this executes once? and
apparently loop structures execute repeatedly?
Part of my if else structure is:-
<cfif #FORM.countryname# neq "0" and #FORM.locationname# neq "0" and
#FORM.post# neq "0">
<cfquery name="rs_GetCResults" datasource="Locations_details">
SELECT *
FROM "NEU Contacts" INNER JOIN positions ON "NEU Contacts".pos=positions.id
WHERE Country = '#FORM.countryname#' AND location = '#FORM.locationname#' AND
pos= '#FORM.post#'
</cfquery>
<cfelseif #FORM.countryname# neq "0" and #FORM.locationname# neq "0">
<cfquery name="rs_GetCResults" datasource="Locations_details">
SELECT *
FROM "NEU Contacts" INNER JOIN positions ON "NEU Contacts".pos=positions.id
WHERE Country = '#FORM.countryname#' AND location = '#FORM.locationname#'
</cfquery>
But should I use a loop and if so how do you loop multiple conditions?
Hope this makes sense.
Miss Jo Guest
-
Miss Jo #4
Re: Help Recordset paging
I think its because I am using if else statements & this executes once? and
apparently loop structures execute repeatedly?
Part of my if else structure is:-
<cfif #FORM.countryname# neq "0" and #FORM.locationname# neq "0" and
#FORM.post# neq "0">
<cfquery name="rs_GetCResults" datasource="Locations_details">
SELECT *
FROM "NEU Contacts" INNER JOIN positions ON "NEU Contacts".pos=positions.id
WHERE Country = '#FORM.countryname#' AND location = '#FORM.locationname#' AND
pos= '#FORM.post#'
</cfquery>
<cfelseif #FORM.countryname# neq "0" and #FORM.locationname# neq "0">
<cfquery name="rs_GetCResults" datasource="Locations_details">
SELECT *
FROM "NEU Contacts" INNER JOIN positions ON "NEU Contacts".pos=positions.id
WHERE Country = '#FORM.countryname#' AND location = '#FORM.locationname#'
</cfquery>
But should I use a loop and if so how do you loop multiple conditions?
Hope this makes sense.
Miss Jo Guest



Reply With Quote

