Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Searching question

    I thought I had this correctly, but I guess not. I have:

    <cfquery name="Login1" datasource="#DataSource#">
    select Usr_pass from members
    where Usr_UserName=#form.UserName#
    </cfquery>

    I'm trying to search through all records in the table for any field that
    matches the UserName from the form that submitted it, and then return
    the password field. I keep getting a 'unknown column' error instead.

    Where did I screw up?

    Steve
    Steve Grosz Guest

  2. Similar Questions and Discussions

    1. spotlight searching question
      I have a question regarding using Spotlight to search file content in OS X. We are a small group of teachers who produce a monthly current events...
    2. name searching
      Hello, I want to search for a name in a mysql database. Name-searching can be tricky. Let's say I want to find "Boer". This should match "de...
    3. Stupid Question SQL Searching
      I have a database full of names and contact info. The names are split into last and first, as would be expected. I would like to create an...
    4. Ruby Newbie's Question: Sockets - searching for equivalent to a perlprogramme
      Hi all, I have been desperately trying to convert the following perl programme to Ruby. What should I use for the functions sockaddr_in (maybe...
    5. MySql search question. Searching on keywords
      How do site searches work? I want to create a MySQL database with a field called "keywords". Then a form with a search phrase input box. I...
  3. #2

    Default Re: Searching question

    You need to put quotes around the text on the right side of the =.

    <cfquery name="Login1" datasource="#DataSource#">
    select Usr_pass from members
    where Usr_UserName='#form.UserName#'
    </cfquery>


    HTH,
    --Dave

    dave_jf Guest

  4. #3

    Default Re: Searching question

    Duh!! Sheesh, its too early.... Thanks!

    dave_jf wrote:
    > You need to put quotes around the text on the right side of the =.
    >
    > <cfquery name="Login1" datasource="#DataSource#">
    > select Usr_pass from members
    > where Usr_UserName='#form.UserName#'
    > </cfquery>
    >
    >
    > HTH,
    > --Dave
    >
    Steve Grosz 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