Forum Moderators: coopster
I have these profile type pages. And I want to split them up so that I have a page for people living in different areas.
I already have it set up to only show profiles that have been approved. So if I want it to only show profiles where the cell titled "area" has "east" in it, how do I do that?
This is what I have:
$newquery = "SELECT ID, name, year, area, photopath, releasedate FROM profiles_table WHERE released=1 ORDER BY releasedate DESC LIMIT $offset, $rowsPerPage ";
Any thoughts? Does my question make any sense?
You can use a full-text search: [dev.mysql.com...]
Maybe something like this:
$newquery = "SELECT ID, name, year, area, photopath, releasedate FROM profiles_table WHERE released=1 AND MATCH (area) AGAINST ('east') ORDER BY releasedate DESC LIMIT $offset, $rowsPerPage ";
See if that works.
What is it?