hello...
how would i go about doing something like this... (this is a simple example)
i want to select Name, Location, Age from a table where their age is 1 of 3 options, and then check if their locaiton is valid and then check if they are female.. then sort by age... i THOUGHT the code would look like this... but it dont work right 🙁
"SELECT Name, Location, Age FROM people WHERE Age = '$Age1'
OR Age = '$Age2' OR Age = '$Age3' AND Location = '$Location' AND Sex = '$Sex' AND Level LIMIT 0, 60"
anyway that works, but it doesnt get me the data i want..it just seems to match everything too it... and if i put "ORDER BY Age" at the end it kicks up a fuss...
so if i wanted to get someone by the age of 16,24,52 who was in UK and female the results would show everything no matter what age was defined 🙁
am i doing it in the wrong order or am i just stupid..lol and can i use LIMIT and ORDER together in a query?
thanks again 🙂