In my FTI search I am using the search query field with this MySQL select command:
SELECT a.wci_sku, b.fti_sku, b.description, a.qty_onhand
FROM #__cck_free_form_xref_qty AS a
JOIN #__cck_free_form_xref AS b
ON a.fti_sku = b.fti_sku
WHERE [MATCH]a.fti_sku||$uri->getValue('x_fti_sku')[/MATCH]
-----
I would prefer to combine these as one form and simply tweak the MySQL select command, so
- IF one is search for WCI # then the mysql code reflects IF WCI form input field EXISTS or
- IF one is search for FTI # then the mysql code reflects IF FTI form input field EXISTS
but not sure how to add IF EXISTS when regarding an entry into the input field.