select * from Login, UserInfo
where
Login.Sex = \"$status2\"
AND Login.Psex = \"$status1\"
AND UserInfo.Age =< \"$age1\"
AND UserInfo.Age =< \"$age2\"
AND UserInfo.State = \"$state\"
Referenced by Login.Ref, UserInfo.Ref
limit $offset,$limit";
It is not working can anybody tell me why?
with age trying to select inbetween them
so like a range from 18 to 22 or something.
Thank you
Chris