Forum Moderators: coopster
$term=This+IS -Funny+Serious-Article+lecture-to+Search
here + means BOOLEAN AND
and - means NOT
i used explode()to split data wrt to + but in some indicies
its storting data with minus sign like
a/c to above critera
if i use explode("+",$term)
arr[indexValue]=Searious-Article which isn`t required
-can anyone help me in this regard so that i could make a proper SQL query from these keywords?
comverting + into AND and - into NOT is not issue at all,its just i need to find a way to make it inform of SQL query
thanks in advanced
-adnan
SELECT * FROM search_table WHERE MATCH(text) AGAINST ('$term' IN BOOLEAN MODE);
See section 6.8 MySQL Full-text Search in the mysql.com documentation.
Scott Geiger