Problem with the recordset of the search form WHERE... AND the clause

Hi, I have created a page of 'memb_directory' directory of members with a repeating table and added a "lastName" search box which works fine as long as I use the simple, a variable ("rsMemDir") recordset in Dreamweaver 5.5 format. But I need to return only the names for which the Boolean "member_pub" in the MySQL database field = 1 (check box is selected) and for the life of me, I've tried every ' WHERE... AND "permutation of SQL statement I can think, but continue to get an"internal server error"response as DW analysis code.» All tracks have enjoyed.

Booth:

Wanted to come back and say thanks again for helping me to move forward on this issue.  At least, you're more of an expert I am PHP.  You me headed in the right direction.  FYI (and anyone else who might fall, here at last, which worked):

$colname_rsMemDir = "-1";
If ($_GET ['searchStr']) {}
$colname_rsMemDir = $_GET ["searchstr is"];
}
$colname2_rsMemDir = "-1";
If ($_GET ['searchStr2']) {}
$colname2_rsMemDir = $_GET ['searchStr2'];
}
$colname3_rsMemDir = "-1";
If ($_GET ['searchStr3']) {}
$colname3_rsMemDir = $_GET ['searchStr3'];
}

@mysql_select_db ($database_iama_test, $iama_test);

If ((! isset($_GET['searchStr'])) & (! isset($_GET['searchStr2'])) & (! isset ($_GET ['searchStr3']))) {}
This will search for all members who check the box include
It's "first load the scenario.
$query_rsMemDir = "SELECT * FROM member WHERE member_pub = 1 ';"
} else {}

$query_rsMemDir = sprintf ("SELECT * FROM member WHERE member_pub = 1 AND (lastName like %s OR firstName like %s OR emailLogin as %s) ORDER BY name ASC", GetSQLValueString ("%".) ") $colname_rsMemDir. '%', 'text'), GetSQLValueString ('%'. $colname2_rsMemDir.) '%', 'text'), GetSQLValueString ('%'. $colname3_rsMemDir.) '%', 'text')); }

I salute you!

-wiz

Tags: Dreamweaver

Similar Questions

  • Problem with the clause.

    I use WITH clause in one of my request... and instead to choose the table WITH I use for INSERTING records... I can do this...
    I write the quesry below and the error message... Will be great if someone can give an idea...


    WITH GADGET_MAP AS (SELECT UCP_AWU_PK, PRD_AME_PK FROM FSI_AT_USER_COUNTRY_MAPPING, FSI_AW_PROFILE_DETAILS WHERE UCP_PRF_PK = PRD_PRF_PK AND PRD_AME_PK IN (SELECT AME_PK FROM FSI_AW_MENU WHERE AME_GADGET_TYPE IS NOT NULL) LESS SELECT UGM_AWU_PK, UGM_AME_PK FROM FSI_AW_USER_GADGET_MAPPING) INSERT INTO FSI_AW_USER_GADGET_MAPPING (UGM_PK (, UGM_AWU_PK, UGM_AME_PK, UGM_GADGET_HEIGHT, UGM_GADGET_COL_ID, UGM_GADGET_ROW_ID, UGM_GADGET_MAX_ITEMS, UGM_GADGET_ANIMATION, UGM_GADGET_RELOAD_MIN, UGM_MIN_MAX_CLOSE, UGM_GADGET_TITLE, UGM_GADGET_FORM_VALUES, UGM_GADGET_DB_FILTER, UGM_GADGET_TITLE_KEY, UGM_GADGET_CREATED_BY, UGM_DELETE_ALLOWED, UGM_SHOW_MOBILE, UGM_IS_ACTIVE, UGM_MOB_SEQ, UGM_GADGET_GRAPH_TYPE) SELECT UGM_PK_SEQUENCE. NEXTVAL, UCP_AWU_PK, PRD_AME_PK, AME_GADGET_HEIGHT, AME_GADGET_COL_ID, AME_GADGET_ROW_ID, AME_GADGET_MAX_ITEMS, AME_GADGET_ANIMATION, AME_GADGET_RELOAD_MIN, 'X', AME_NAME, AME_GADGET_FORM_VALUES, AME_GADGET_DB_FILTER, AME_RESOURCE_KEY, 1, "N", "N", AME_IS_ACTIVE, AME_GADGET_MOB_SEQ, NULL FROM FSI_AW_MENU, GADGET_MAP WHERE AME_PK = PRD_AME_PK;

    Error: -.
    ERROR on line 1:
    ORA-00928: lack of SELECT keyword

    Thanks in advance...

    You must reformat the query.

    INSERT INTO FSI_AW_USER_GADGET_MAPPING
     (UGM_PK ,UGM_AWU_PK ,UGM_AME_PK ,UGM_GADGET_HEIGHT ,UGM_GADGET_COL_ID ,UGM_GADGET_ROW_ID ,UGM_GADGET_MAX_ITEMS ,UGM_GADGET_ANIMATION ,UGM_GADGET_RELOAD_MIN ,UGM_MIN_MAX_CLOSE ,UGM_GADGET_TITLE ,UGM_GADGET_FORM_VALUES ,UGM_GADGET_DB_FILTER ,UGM_GADGET_TITLE_KEY ,UGM_GADGET_CREATED_BY ,UGM_DELETE_ALLOWED ,UGM_SHOW_MOBILE ,UGM_IS_ACTIVE ,UGM_MOB_SEQ ,UGM_GADGET_GRAPH_TYPE )
    (
    SELECT UGM_PK_SEQUENCE.NEXTVAL, UCP_AWU_PK, PRD_AME_PK ,AME_GADGET_HEIGHT ,AME_GADGET_COL_ID ,AME_GADGET_ROW_ID ,AME_GADGET_MAX_ITEMS ,AME_GADGET_ANIMATION ,AME_GADGET_RELOAD_MIN ,'X' ,AME_NAME , AME_GADGET_FORM_VALUES , AME_GADGET_DB_FILTER , AME_RESOURCE_KEY ,1 ,'N' ,'N' ,AME_IS_ACTIVE , AME_GADGET_MOB_SEQ ,NULL
    FROM FSI_AW_MENU ,
    (SELECT UCP_AWU_PK, PRD_AME_PK FROM FSI_AT_USER_COUNTRY_MAPPING , FSI_AW_PROFILE_DETAILS WHERE UCP_PRF_PK = PRD_PRF_PK AND PRD_AME_PK IN
    (SELECT AME_PK FROM FSI_AW_MENU WHERE AME_GADGET_TYPE IS NOT NULL) MINUS
    SELECT UGM_AWU_PK,UGM_AME_PK FROM FSI_AW_USER_GADGET_MAPPING )  GADGET_MAP
    GADGET_MAP WHERE AME_PK = PRD_AME_PK
    );
    
  • I had a few problems with the search engines and history

    My default search warning back to Yahoo after a reset on my computer. Close Firefox keep one to change but by restarting the computer, it takes.

    I can't open the sidebar history. The option "view the history of your" opens its tab fine (the drop-down menu that says 'Show History Sidebar', 'clear recent history... ("ect.). But, when you click on the "Show History Sidebar", nothing comes. Can I use the "Show history" option, but the sidebar does not open for some reason any.

    I just finished with a complete analysis of the Microsoft Safety Scanner and it said not that there is anything wrong. I have not reset the computer again to see if something has changed although after the factory reset (see the 2nd paragraph) it seems returned to Yahoo (search engine he kept going to happen).

    I open the history tab in the menu of the toolbar, and everything seems fine here. I also had him always use private off all first browsing mode. After activating the option clear history when Firefox closes, I ended up having to reset to factory settings (things he saves were saved isn't really a problem) that doesn't seem to fix the problem with the sidebar of history not to come.

  • problems with the firefox search engine

    When using my hotmail email today when I I closed it got stuck with the msn home page, I have managed to recover the firefox home page, but the search is made by BING, I don't want that I want as before google. It seems if be produced since firefox 18 was delivered

    Can any body help to get this back as before

    Try to reset default preferences with the SearchReset extension:

    Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).

    You can check the pref browser.search.defaultenginename (s) on the topic: config page to see if it has the value of Google by default.

    If there is a problem with the search through the default value: home page and then try to reset the search engine used on the subject: homepage.

    Reset the pref browser.startup.homepage_override.mstone through the context menu by default on the topic: config page and close and restart Firefox to restore the on: default home page.

    1. Open the topic: config page through the address bar
    2. Type in the filter bar: mstone
    3. Right-click on the browser.startup.homepage_override.mstone line, and then select: Reset
    4. Close and restart Firefox

    If this did not help, then remove the button Delete the chromeappsstore.sqlite file in the Firefox profile folder and repeat the foregoing.

  • Problem with the search function

    I use firefox 10 and I have a problem with the search feature. If the word that I will try to find begins with the capital letter I can't find with control function if I write the word only with small letters. a the opposite. For example, if the word is 'Letter' I can't find this word if I type 'letter' in the search bar

    Is the option 'Option match case' in the verified search bar? If so, uncheck it.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Smart Safari search bar, problem with the option 'include suggestions for Safari '.

    Hi all

    I am facing a problem with the search bar Safari Smart of yesterday (January 26, 2016).

    The search bar doesn't work anymore, I can't type, or search or write an http address either. I can only navigate by selecting a bookmark.

    Go to preferences I have all the people with reduced mobility and the disappearance of the problem.

    Then try to isolate the problem, I've found it comes to the "include suggestions of Safari" option in the smart search options.

    Anyone had a similar problem, or have any suggestions on how to get it back to life?

    I must say yesterday, everything working, I have not installed anything new on my Mac.

    Thank you very much!

    Kind regards

    S. Luca

    Try the following steps:

    A possible solution to the problem of address bar: disable the Safari Suggestions

  • Having a problem with the update of the window. He said that windows could not search for new updates. It's the found error 80245003 code

    Having a problem with the update of the window. He said that windows could not search for new updates. It's the found error 80245003 code

    Take a look at this article as it addresses this error code. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because that box "email".

    I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because the 'email' box keep rejecting their email address valid. And I just tried to remove the line in my form and it does not allow me to delete or to mark it as not necessary either.

    Currently, there is no way around the field email forms of the Muse. Another option is to have a look at Jotforms or another third-party provider of shape that Muse has widgets for.

  • When we publish a Web site create in MUSE, the server must be linux? Please let me know because I have the problem with the form works... now the server that I use is the window...

    I am trying to publish in my domain on windows server, but I have a problem with the form...

    The server must be linux to work the form?

    Thanks in advance for your help...

    Thank you Brad... but how can I understand if a Linux server support? I try to do something in particular?

  • Problems with the contact form

    Good day to you all,.

    im a total newbie-muse.

    That said: I have some problems with a contact form I've tried to insert into my homepage.

    When I try to download it via ftp to our server muse tells me that there are some problems with the configuration of PHP.

    In addition to the contact form, the site works very well.

    I tried to change the version of php on our server at 5.6, but it still doesn't work.


    Any ideas?

    Thanks in advance and greetings from the Germany.

    You can consult this document: Troubleshooting Muse form Widgets used on the third... | Adobe Community

  • My customer is having a serious problem with the Contact form Widget

    My Client is to have a serious problem with the Contact form Widget that I can't seem to figure out how to fix.

    I created a website for a client and inserted a widget of Contact form on the "Contact us" page Whenever someone uses the form, e-mail receive my client shows my e-mail address as the sender. So when they "meet" the email, the response is sent to me and not the person who sent the original message. This creates a major problem in that I get flooded with answers e-mail while my client's potential customers go without a response.

    When I look at ' Site Manager > email system > Workflow information > e-mail address on the site administration Console, it displays my e-mail information. This is what needs to be changed?  If this is the case, what needs to be placed in this field for the email address of my client receives presents information email senders in the field "from".  My client wants to be able to click on reply and the message sent to the right side. They would be very angry if should be cut and past shippers Correo electronico of the body text on all the contacts they receive.

    Their feeling is that if I can't find a way to make the contact form works as it should, then there is no need for them.

    Can someone help me understand this? I really don't want to disappoint my first client.

    Congratulations for your first customer! =>

    Looks like you can have your email in places where your customers email should be.

    Here are the places you need to change your e-mail address.

    First adjust the answering of your web form is your customer email. Screenshot: http://screencast.com/t/YWiZZ30E0jE and http://screencast.com/t/u4t69anTLR

    Second set Emails to come your clients e-mail system. Site management > system email > set default "from" e-mail. Screenshot: http://screencast.com/t/EAr2sfXk

    I always go through each email system and check the e-mail address after you set the default value. I found that it doesn't always change them for some reason any. Note: If you are on a lower to webCommerce plan your list can be shorter than what is shown.

    Make sure that the email you the list of customers is also an email they want in public.

    Also provide information on the TSA that thetrickster888 is good information.

    I hope this helps.

    Lynda

  • Problem with the Login user and scroll form

    Hi all, I have a problem with the form for the user to login to my page.

    There is a connection user transaction and the cursor automatically appears in the tefxfield of connection, which causes the page to scroll automatically, so the banner is completely displayed.

    I tried with the blur() and javascript function, but it simply doesn't. Anyone know a solution to this problem?

    Just came across the following in the file 'includes/tng/scripts/FormValidation.js ': code snippet

    if (typeof KT_FVO['kt_login_user']!='undefined') {
                   var user_name_ctrl = document.getElementById("kt_login_user");
                   if (user_name_ctrl) {
                        user_name_ctrl.focus();
                   }
              }
         }
    

    If I understand correctly, here´s where ADDT´s "kt_login_user" of field entry will focus on loading the page, so I think basic is enough to disable the line...

    user_name_ctrl. Focus();

    .. .to add a first comment in javascript:

    user_name_ctrl. Focus();

    See you soon,.

    Günter

  • Problems with the construction of a tabular form manually

    Hello guys,.

    I would ask kindly for your help. I'm having a problem with the fields on a report updateble in my APEX application.

    The report I have two fields that im done with the htmldb_item function. One is the ID of the record and the other attribute that can be updated using a selection list.

    -----
    SELECT
    htmldb_item. DISPLAY_AND_SAVE (1, "TABLE".) "ID") "ID", "
    htmldb_item. SELECT_LIST_FROM_LOV (2, "TABLE".) "ATTRIBUTE", "LOV") "ATTRIBUTE", "
    THE "TABLE".
    -----

    Then I have a process that needs to update the table.

    -----
    BEGIN

    BECAUSE me IN 1.htmldb_application. G_F01. COUNTY
    LOOP

    apex_application.g_print_success_message: = ' < span style = "color: green" > attribute: ' | NVL (htmldb_application. G_F02 (i), 0). » ID : ' || htmldb_application. G_F01 (i) | "</span > ';

    UPDATE table
    Attribute SET = NVL (htmldb_application. G_F02 (i), 0)
    WHERE id = htmldb_application. G_F01 (i);

    END LOOP;
    END;
    -----

    The update can't even if the loop works fine, but the success message prints only the htmldb_application. G_F02 (i) but not the htmldb_application value. G_F01 (i). But how come doesn't work OK if loop the htmldb_application. G_F01 (i) has the value null?

    The funny thing is, that it works on my test environment, but he behaves like this on the production environment.

    Has anyone else have similar experiences?

    Kind regards
    Aleš

    Edited by: user1330618 the 21.12.2009 04:28

    Hello

    Its done.

    The record button was just redirection without submitting the page, it's him not display the message or the recording of the information...

    now, the button is present and redirect...

    Kind regards
    Shijesh

  • Problem with the main screen of firefox

    After the update of firefox to firefox 15.0 16.0.2's problem with the main screen. At the top of the main screen displays the bar (caption bar of the main form) that I have win xp and under this title is bar legend like win 7.

    Firefox is running on Windows Xp, if better, I can send the screen, but I don't know where is possible add image to this error report...

    Okay, the problem has been resolved, problem was with the Tab Mix Plus extension. I have an older version of this extension, because at work may not update directly, because I'm going to the Internet via a proxy. Download, update firefox extension directly through the proxy is not possible... I need to download via the other internet browser, in order to not do it often...

  • Problem with the D-U-N-S: Urgent

    I am trying to register my organization on an Apple Developer program.

    I got a valid D-U-N-S number sent to me by D & B on 2 February 2016.

    However until now whenever I try to register my business using the D-U-N-S number, I get the following error message:

    «The information you entered does not match your profile in the D & B database.» "Before submitting your information to the Organization, get your D & B profile."

    I watched and the profile exists.

    I sent a query to D & B, but we were told to contact Apple directly.

    We have created a deal on the Apple Support and we ardently and desperately waiting for a response.

    Someone from the community can help me on this issue. Please consider as urgent.

    Hello Nabla_business,

    Desperate? You should be aware that Apple is moving at glacial speed on these issues. On the one hand your number DUNS has been created. You must wait 60 days before attempting to create an account. However, it seems that your information has been through to Apple. You will have to wait for the Apple support to constct you. You may need to make repeated through several channels attempts to attract the attention of Apple.

    I had a similar experience. The problem was that when Apple imported data from Dun & Bradstreet, they completely scrambled my address. But I had no problems creating my account so your questions can be worse.

    And I would warn your words "emergency". Apple has a huge backlog of similar problems. In my case, the only way was able to get my problem resolved was when a Technical Support engineer used Apple Remote to go into my machine and then look at the developers own Apple Site. But I had this problem to be solved. I had many other problems with the tax forms.

    My point is that it can take up to a year, in order to get your developer account fully Setup. I suggest you open an account, personal development and test purposes. Be sure to use IDS bundle dedicated to this purpose. This way, when your business is finally set up, then you will be ready to go and become familiar with the process.

  • Problem with the Conexant HDAudio after installing x 86 Vista SP1

    I didn't want to start a new thread, but it seems that my problem is quite unique.

    When the first x 86 Vista install my speakers/headphones worked great. After Vista SP1 installed, my speakers/headphones went silent, but the pilot was still there and working properly. I uninstalled the driver and let Windows automatically install a different driver. (No Rollback was available) I could get the sound from my speakers. Speakers are the only thing that works if I plug into the headphone jack or not.

    When connected to the plug headphones I have test the headphones feature in playback devices and receive nothing in the helmet.

    Drivers of HP support only cut my speakers while doing my reading helmet camera disappear. Even with the updated driver.

    I like to use it as a TV computer and would like the sound of the TV via the headphone jack.

    I searched EVERYWHERE on the internet and found no resolution. Any help would be appreciated.

    HP pavilion dv6748us

    Conexant Audio

    Hardware ID:

    HDAUDIO\FUNC_01 & VEN_14F1 & DEV_5051 & SUBSYS_103C30CF & REV_1000

    HDAUDIO\FUNC_01 & VEN_14F1 & DEV_5051 & SUBSYS_103C30CF

    Have encountered problems with the card drivers its me on vista & 7 even when driver installation correct support downloaded installers.

    Only solution I found was to download a range of versions of different driver bought research google & trials, tedious but sometimes only way to get the result.

    If you uninstall the driver & restart it installs a generic driver audio Conexant or Windows!

    I also use my laptop with TV & hifi so work taken audio is a must (card input jack usb audio can be an option if)

    Also never rule out the fault of Council helmet as have a Pavilion & after that OS installed on a new drive HARD had no audio for headphones, pilot presumed linked, but after fiddling fuond twist got jack sound, turned Ribbon glued on card Board failed.

Maybe you are looking for

  • iTunes/download issue

    When I have my open iTunes (v12.3.3.17) playing, and a download of my Safari is finished, it changes songs about me. If I have a song on pause at the end of download of Safari, the song starts on me. For sure, it's a matter of Apple because it didn't

  • NB550D - creating an Image and recovery

    My laptop is a Toshiba NB550D according to disk management the following is my start-up: Recovery partition Active 1.46 GB7.98 gb main partition224.23 initialization, page file, crash dump, primary assets If I use a disk imaging program like Macrium

  • How to optimize the internet service from Verizon FiOs for Vista

    I agree with Verizon FiOs for internet and phone.  Recently, he was running very slowly, and when I ran a test of speed with the agent of Verizon, transfers came as ~4.96M download / upload de.758M.  In the details, he said the SendBufferSize is fixe

  • Communication of printers HP Solution Center, Port 427 problems

    I installed the HP Solution Center in the installation process it finds my printer on the network.  I can call the pritner using internet explore and type the IP address of the printer, I can print it, but HP Solution Center can 'communicate' I get t

  • App refused? Why?

    Hello I submitted an application of time for the device developer BB10. It wasn't the app I was originally working (and which is to be published soon). I'm not proud of it, but it was not a bad (cr) app. The app, I tried out was impossible in the end