Now my problem is rrunning my quesry i know is good as i have tested on the server on the query analiser but i cant get it to run from the web site.
the original code that runes is
PHP Code:
<cfquery datasource="mssqlcf_modelprod" dbname="modelprod" name="get_prememb">
SET QUOTED_IDENTIFIER OFF
SELECT *
FROM precontract
where name Like '#form.member#%'
ORDER BY name
</cfquery>
But I want it to run more like
Code:
<cfquery datasource="mssqlcf_modelprod" dbname="modelprod" name="get_prememb">
SQL
</cfquery>
as the var SQL = SELECT * FROM precontract WHERE name LIKE '%m%' OR email LIKE '%1%' OR phone LIKE '%2%' OR conID LIKE '%3%'
Bookmarks