quick table/SQl question - revisited

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default quick table/SQl question - revisited

    Getting this in the result page
    CFLanguage_variable error

    Search page
    <cfquery name="SearchLanguage" datasource="simple">
    SELECT Language_name
    FROM tslanguage</cfquery>
    <input type="submit" name="Submit" value="Submit">
    <select name="select">
    <cfoutput query="SearchLanguage">
    <option value="#SearchLanguage.Language_name#" <cfif
    (isDefined("SearchLanguage.Language_name") AND SearchLanguage.Language_name EQ
    SearchLanguage.Language_name)>selected</cfif>>#SearchLanguage.Language_name#</op
    tion>
    </cfoutput> </select>
    </form>

    Result Page
    <cfquery name="gethospital" datasource="simple">
    select a.Hospital_Name, a.English, a.Russian
    from tsHosptial a, tsLanguage b, tsLbyH c
    where a.Hosptial_ID = c.Hospital_ID
    and b.Language_ID=c.Language_ID
    abd b.Language_Name=#cflanguage_variable#
    </cfquery>


    quiero mas Guest

  2. Similar Questions and Discussions

    1. quick table/SQl question
      HI I have a question Three Tables 1.tsHospital fields Hospital_ID Hospital_Name English Russian #English and Russian are check fields...
    2. very quick question
      In my database a field is designated as 0 or -1 . When i make my form how do i set up the drop down menu so that the user chooses yes or no and...
    3. Quick CSS question
      Hi, I have a css file that I used when building my template. Now that I'm building additional pages from the template, do I edit the same css file...
    4. quick MX question....
      how do you get rid of that window on the right where it says 'color swatches', 'components', etc.. it really bothers me, it makes the working area...
    5. QUICK SSA QUESTION
      AIXers, I'm looking for a quicker way to determine the physical locations of ssa drives in a SSA drawer w/o having to use diag/ssa service aides...
  3. #2

    Default Re: quick table/SQl question - revisited

    Looks like you are trying to have every language selected in your cfselect.


    Dan Bracuk Guest

  4. #3

    Default Re: quick table/SQl question - revisited

    Could it be something to do with my tables?
    Language_ID Language_name
    1 ???????
    2 ???????

    Hospital_ID Hospital_Name English Russian
    1 ????? Yes Yes
    2 ????? Yes No
    3 ????? Yes Yes

    Hospital_ID Language_ID
    1 1
    1 2
    2 1
    3 2
    3 1

    quiero mas Guest

  5. #4

    Default Re: quick table/SQl question - revisited

    No, it has something to do with the way you are deciding which option to have selected in your select control. It looks like every one will qualify.
    Dan Bracuk 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