If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

hii folks i have doubt on mysql

friends i'm trying with mysql like and OR operator but i'm not getting exact output.

SELECT registration1.*,registration2.*
FROM registration1 JOIN registration2
ON registration2.emailid=registration1.emailid
WHERE(keyskills LIKE '%$search%') OR (keyskills='$search1')

this is my code. LIKE operator is working properly but keyskills='$search1' this is not working while using keyskills LIKE '%$search%' this. please let me know what mistake i did...
please friends it's very urgent help me....