How can I create a multi field search with wildcard option

I've been working on a project which has a MySQL database
that the user can search by choosing to enter some or all of three
fields in a form on a PHP page, which then, obviously, relate to
specific variables and fields in the database.
Previously I had the default values of the variables as '-1'
which meant that the results page simply ignored any of the
variables that hadn't been filled in. However, now that the 8.0.2
update to Dreamweaver has forced the Type of each variable, it no
longer ignores those values and so returns no results. In order to
get a correct result I have to fill in all three, I can't just fill
in one of the fields.
What do I have to do to regain the functionality of the
results page simply ignoring any field that isn't filled in
(effectively giving a 'any' value)?

When building SQL statement, leave out the WHERE
xyzfield=SearchString.
"Podsnap" <[email protected]> wrote in
message
news:e7o8o0$jpo$[email protected]..
>I need to create a search page that give all results if
nothing is input
>into
> the field.
>
> Ultimately I want to have several fields on the page and
the user will be
> able
> to enter as much or as little into the fields.
>
> So while the first field it likely to be a keyword
search I might also
> have a
> field for say, 'city' and if nothing is chosen then it
will give results
> for
> all cities but, obviously, if London is chosen then it
will give results
> for
> just London. (And obviously if something is put into the
keyword field as
> well,
> then that will filter the results further).
>
> Any ideas how I go about this? Or can you point me to a
good tutorial? Or
> even
> an extension?
>
> Thanks.
>
> PS: I'm not, by any means, a code warrior, so speak
slowly ;)
>

Similar Messages

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

  • How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?

    How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?
    Several times in the last year, I've gotten a message that Time Machine needs to completely redo my backup. Using the wireless connection, this takes almost two days. Is there a way to do the backup with ethernet and then switch back to wireless? Thanks.

    May I know what is needed to make sure the MacBook is able to see Time Capsule on ethernet?
    Connect an Ethernet cable from one of the LAN <-> ports on the 2Wire gateway to the WAN port (circle of dots icon) on the Time Capsule.
    If AirPort Utility cannot "see" the Time Capsule now, you will need to perform a "hard reset" by holding in the reset button for 7-8 seconds or so and then reconfigure the Time Capsule. You can use the same Time Capsule name and password, etc. as before.
    Configure the Time Capsule to "Create a wireless network" and select the Bridge Mode option when it appears during the setup using AirPort Utility.
    Once the Time Capsule is configured, restart the entire network again. Power down everything, start the 2Wire first and then start each other device after that one at a time about a minute apart.
    Now you can connect your Mac directly to one of the LAN <-> ports on the Time Capsule for the backup using another Ethernet cable. In general, about 20-25 GB per hour will transfer.
    The Time Capsule will broadcast a much faster wireless network than the 2Wire can provide, so you might want to leave the setup "as is" for awhile after the first backup is complete. If you decide to use the Time Capsule as your main wireless access point, you would want to turn the wireless off on the 2Wire since two wireless networks in close proximity can create interference problems.
    Or, if you want to use the wireless on the 2Wire, you could turn off the wireless on the Time Capsule. Then backups will occur over the 2Wire wireless, or over Ethernet.
    I don't really recommend the "Join a wireless network" setting on the Time Capsule for most users, but you could go back to that setup as well if you want after the first backup is complete.

  • How can you create a multi-page pdf document in photoshop elements 13?

    I previously had pse 11 and was able to create multi-page documents as pse files. However, pse 13 does not allow. How can I create multi-page pdf files from pse 13?

    Alas, for one of those mysterious adobe reasons, it's gone in recent versions. Only multipage file you can make is a photobook.

  • How can i  create and access resource file(with .res ext) in j2me

    hi,
    i am developing an mobile international application using jsr-238 an optional api to implement the idea of internationalizationand localization.
    please tell me how can i create .res files in my application to store strings of different languages.thanks inadvance.

    Hello GG RA,
    which fileformat do you want to use (binary or ASCII)?
    There are some LabVIEW shipping examples for File I/O
    You could use the LabVIEW NI Example Finder (Help --> Find Examples..(search item "file")) to get an overview about the different file-formats in LabVIEW.
    Hope this helped out and feel free to reply if you have more questions about File I/O in LabVIEW
    Best regards
    Benjamin

  • How can I create a new Care Plan with one or more care tasks

    Hello,
    I'm working on a Dutch website in the HealthVault Environment. I got difficulties in creating and updating a careplan with care tasks. Most likely it's due to lack of knowledge...
    Following code works fine:
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    this.PersonInfo.SelectedRecord.NewItem(plan);
    It creates a plan called [test]. But I don't know how to create a plan with one or more tasks in it: the tasks property is read only.
    https://msdn.microsoft.com/en-us/library/microsoft.health.itemtypes.careplan.tasks.aspx
    Half a year ago I was able to add an example of a careplan, which was a feature of the dev tools, but for some reason that's not possible anymore.
    https://developer.healthvault.com/DataTypes/Overview?TypeId=415c95e0-0533-4d9c-ac73-91dc5031186c
    So my question is, how can I add a new care plan with a task like the example from the HealthVault dev tools:
    <tasks>
    <task>
    <name>
    <text>Run 100 miles</text>
    </name>
    <description>Run 100 miles in 6 months</description>
    <start-date>
    <structured>
    <date>
    <y>2013</y>
    <m>12</m>
    <d>1</d>
    </date>
    </structured>
    </start-date>
    <end-date>
    <structured>
    <date>
    <y>2014</y>
    <m>6</m>
    <d>1</d>
    </date>
    </structured>
    </end-date>
    <target-completion-date>
    <structured>
    <date>
    <y>2014</y>
    <m>12</m>
    <d>31</d>
    </date>
    </structured>
    </target-completion-date>
    <sequence-number>279128532</sequence-number>
    <recurrence>
    <interval>
    <text>Once</text>
    </interval>
    <times-in-interval>10</times-in-interval>
    </recurrence>
    <reference-id>p01vil21ckg7k2346y1g60337mmi20sg564l321l8pmpqev39n302572sewu76lh9019s3993e02924</reference-id>
    </task>
    </tasks>
    Any help is welcome 
    Wilfred

    Hi Wilfred,
    Have you tried this?
    CarePlan plan = new CarePlan();
    plan.Name = "test";
    plan.Tasks.Add(someTask) 
    If you have a task list already, you would need to enumerate through it and add one by one...
    foreach (var task in existingList)
        plan.Tasks.Add(task)

  • How can you create a spry menu bar with no background colour?

    How can you create the first level of a spry menu bar to have no colour? I have a coloured background right now and the colour matches when you load the site in Internet explorer but does not match in Firefox. Any suggestions are welcomed on how to fix this.
    Thanks!
    HK

    Here is the site:
    http://partnersnaturally.ca/
    I am learning with code, (obviously) so any feedback would be nice. I use dreamweaver CS4, but when I originally designed the site it was in a much older version of dreamweaver. I wonder if that could also be a cause. (besides human error)
    Thanks again,
    HK

  • How can I create a file brows menu and save option?

    How can I create a file brows menu, if I wont my user to choose a picture from his PC.
    And how can I save my user settings?(this is application going to be only on my users pc)

    You can launch a file selection dialog with FileReference. You can save settings using a SharedObject (like a cookie).
    http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7 .html
    http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_3.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_5.html
    If this is a Flex app, you will only be able to select a file from the local machine and upload to server, you won't be able to open the file in the Flex app, due to security sandbox.
    If this is an AIR app you will not have this restriction.
    If this post answers your question or helps, please mark it as such.

  • How can I create a multi-line combo box?

    I am using Adobe Acrobat Pro 9 and I am trying to create a multi-line combo box on my fillable form.  At the bottom of this form/letter I would like to have a several paragraps that the user can choose from, but it's only allowing me to enter one line at a time.  Any help??

    Hi, Did you find the answer to this? I'm looking to create a combo box with multi-lines

  • How can I create unique partnerships to deal with like EDI messages?

    I have an EDI to Application partnership setup currently that deals with translating MEDRUC type EDIFACT messages to a mainframe format. The setup is
    Sender = PARTNERA,
    Receiver = PARTNERB
    DocType = MEDRUC.
    In the Input EDI tab the
    Sender Qualifier ID = ZZ:PARTNERA
    Receiver Qualifier ID = ZZ:PARTNERB
    Standard = EDIFACT
    Version = D
    Release Number = 97B.
    Use UNG to locate partnerships = No
    EDIFACT messages contain all this information in their UNB and UNH segments which is where SunONE IS B2B looks to then match against the relevant partnership. My problem is this does not go to enough granularity for me to distinguish uniqueness for the second partnership I need to create.
    The problem is the "Association assigned code" field in the UNH for EDIFACT messages is not catered for anywhere in the partnership details area. This means then that whilst my existing partnership deals with Simplified Billing Claim MEDRUC's which is Association assigned code = SBC20, I can't create an EDI to Application partnership for PARTNERA and PARTNER B to cater for Two Way Gap Claiming MEDRUC's which are Association assigned code = TWC10, ie the two messages are D97B MEDRUC type messages only distinguished from each other by this Association assigned code.
    Any ideas how can I then create a unique EDI to Application partnership for this TWC10 MEDRUC message?
    What I am thinking I will have to do is make this second partnership Application to Application and create a custom service to wrap the MEDRUC message with a HREC/TREC and use the parameters in the HREC to dictate the DocType rather than use the UNB/UNH segments in the MEDRUC?

    Hmmm. It looks like way back when the decision was made on how specific the keys had to be, they didn't get quite specific enough for your case. I'm not super experienced with EDIFACT but I'll throw out some suggestions based on my HREC and X12 knowledge.
    A. Could you handle both instnaces through the same partnership, but alter the map to create unique outputs based on the two different types? At least of the cards would need to be handled through Route, but you could have that picked up by a simple Outprep / Gateway Service list that put the data where you wanted it.
    B. Before Parse, run a custom service that is capable of inspecting for which type of data it is, then modify one of the key fields in place to find the Second partnership. Really getting adventurous, maybe you could alter keys in the UNG to make the distinction. This assumes that you don't have both types of documents in the same interchange.
    C. Your idea may be workable. Can you give some more detail on the make-up of the Service list and the destination/processing of the two differnt types of MEDRUC?
    Thanks.

  • How can I create public AND private access with a wireless VPN router?

    I am thinking about getting one of the new pre-n wireless routers that has a builtin VPN.  I will need to have a private net for my office and a public net for my customers.  On the private side- my employees will need to access all network resources and servers etc.  On the public side, my customers just need to get to the Internet and maybe print on that side too.
    Both sides will be DHCP.
    Can I set this up with 1 device ro do I need 2?  How can I do this?  Any help is greatlu appreciated.
    Thanks all.
    Message Edited by Gman on 10-14-200607:08 PM

    The only safe way to do this is to creat user groups On your server and give specific assess to the users who log into the network.
    Using a single router , bifurcating a public from a private network is not possible.You will not be able to use the VPN since the users hav e to be connected to the VPN to log into your network.

  • SharePoint Designer 2013 (2010 Platform Workflow) - How can I create a new list item with a SPECIFIC content type?

    In SharePoint 2010 I created workflows that used the 'Create list Item' Action, which then set the Content Type ID (so I could create documents of various types in a document library). 
    We just switched to the SharePoint 2013 platform, and now the drop down for Content Type ID is blank in all of the workflows that are still using the SharePoint 2010 platform.  Is there any way to create a list item with specific content
    type?  Even if I could just input a string into that field instead of using this blank drop-down.  Please help! 

    Hi Sarah,
    According to your description, my understanding is that you cannot create a new list item with a specific content type using SharePoint 2010 Platform Workflow.
    I tested the same scenario in my environment, and the Create List Item worked fine with the specific content type.
    How did you create the content type?
    Please check if the content type is added to the list/library the workflow associated with.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I create a stop animation video with single images in Premiere Pro?

    Let me start off by saying I am 100% new to pretty much all Adobe software as of about 3 weeks ago. I have been doing a lot of googling these past few weeks. With that said, I will do my best to explain my question.
    I am making a stop motion animated video.  I am not using several photos to create the look, but rather single photoshopped images that I have deleted the backgrounds out of. Basically the video is single charms "crawling" or flying in individually from off screen into a circle, there is a story explaining what each charm means. I started in After Effects, but had issues with audio... am I right in my understanding that you cannot preview the audio unless you use the preview feature? So my solution was playing a guessing game, rendering/exporting, importing it to Premiere Pro, taking notes and then heading back to After Effects to try to re-do the timing. Obviously this was not working too well.
    Then after doing more googling and clicking around I figured out you could layer images in Premier Pro and make them move just as you would in After Effects, which is great! There are two things hanging me up...
    1. I used the wiggle effect in After Effects. For the life of me I cannot find or figure out an effect or preset similar to this in Premiere Pro. Is there such a thing? Or do I have to create rotation keyframes? (I think I'm using keyframes correctly).
    2. Making the images stop-motiony and not smooth.
    My question is... any suggestions on how to re-create the wiggle effect easily in Premiere Pro? Or is there away to create the effect in After Effects and then import the image into Premiere Pro and still be able to change the position and timing?
    Please help! My deadline is tomorrow by the end of the work day!
    Please forgive me if these are silly questions... go easy on me, I'm soo new! Thanks in advance!

    Thanks so much for the reply!
    I read that... but it doesn't preview the whole thing? It only previews a few seconds and then loops. I tried to figure out how to change the preview settings, but I can't seem to get it to work.

  • How can I create a shortcut to a tools menu option?

    I use the clone stamp and the brush tool regularly. Each of these tools provides a Mode: dropdown list to select from in their menu bar.
    The drop down options I use most frequently are Lighten and Darken. I would like to create short cuts to Lighten and Darken, such as Ctrl+Shift+L (Lighten) and Ctrl+Shift+D (Darken).
    The tools panel menu bar does not appear to have a selection list in the Keyboard Shortcuts dialog box.
    How do I create these shortcuts.
    Thank you in advance,
    Jim

    They are already there.  The same shortcuts that affect layer blend modes when other tools are selected, do exactly the same thing when the Brush; Clone, Healing Brush, Blur, Sharpen and Smudge tools are selected.  (I forgot the gradient tool)
    So with the Move tool or a Marquee selected
    Shift Alt + scrolls down through the selected blend modes
    Shift Alt - scrolls up through the selected blend modes
    Your can go directly to specific Blend modes with first letters
    Shift Alt n = Normal
    Shift Alt m = Multiply
    Shift Alt s = Screen
    Now select the brush, or one of the tools that have blend modes, and the same keys will do the same job for that tool's blend mode.

  • How can I create a file in iMovie with a lengthy audio file, but only 1 picture?

    Let me state first off that I'm a blind user using the Voiceover screen-reader in OS X.
    Now, I want to upload some audio to Youtube, but they do not allow simple MP3 files. As such, I want to create a file in iMovie with my audio and 1 picture to use as a visual. Within iMovie, I add my audio file, select a picture, but when I publish, the audio is cut off after only a few seconds. Can someone please explain how I can fix this issue so my entire audio clip will play?

    iMovie is a visual medium, so you need to make the duration of your photo at least as long as your voiceover track. You should be able to double click on your photo and then enter a duration.
    See iMovie Help at this link.
    http://help.apple.com/imovie/#mov3a883915
    An MP3 file may work for you, but for best results, use a WAV or AIFF file (uncompressed). You can convert MP3 to AIFF in iTunes. Let me know if you need instructions.

Maybe you are looking for

  • What is the use and how to use project builder in forms 6i

    Hi, I would like to know the usage of project builder in forms 6i, could anybody explain it......... thanks Bcj

  • Signal recovery 7270 lock in

    Hi I am trying to connect a Lock In Amplifier - Manufacturer: AMATEK , Signal Recovery 7270 DSPLock In Amp.I downloaded their drivers and labview codes to check interfacing of the device. When I run the main vi, it runs and shows no error code but th

  • Airport express & G4 imac

    I have just purchased a Belkin Modem/Wireless Router, trouble is i have a G4 imac without airport. I am thinking of upgrading to a new imac but in the mean time I need to connect to the internet with the old G4. Could I use an airport express base st

  • Landscape problems AIR 2.6?

    Hi, I would like to know if anyone has still problems exporting an ipa with both landscape-views by default with the new AIR version? With the skaling, and autorotation my app works well, but now there is a little gap between the default-image and th

  • What is feature about programing on 10g that have been deprecated on 11g?

    Hi All      I knew just about new feature and enhancement on 11g but I don't know about programming feature that have been deprecated or obsoleted on 11g.      Because my client concerned If they will upgrade to 11g, What have source codes been impac