Look for 2 Conditions

PrimuS's Avatar

PrimuS

21 Dec, 2011 06:05 PM

Hey there,

thank you for the amazing script, I love it.
I would like to know how I can search for multiple fields. I changed the query.php to

$query = mysql_query("SELECT * FROM or_individual WHERE lastname LIKE '%$input%' OR firstname LIKE '%$input%'");

but I don't know how to adjust this line:

searchObjProps:"lastname", selectedItemProp:"lastname", so that it will display both.

Hope you know what I mean? Any help or hint is appreciated.

Best,

PrimuS

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac