Help Recordset paging

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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....
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Help Recordset paging

    :brokenheart;
    Miss Jo Guest

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139