I want to make something like this http://www.gsmarena.com/search.php3 to search the items from my database and give the required result. what would be the best way to do this in php.
EDIT:
I have an entity like 'student' or 'mobile' in this given case. I want to give the user the option to get the count or details about students/phone with selected characteristics .
e.g. how many students who have mess bill > some value and have gpa < 2.0 ?
how many students with gpa > 3 and live on 2nd floor in hostel?
I want to give out all the attributes to choose from.?
i understand i can use several if statements but whats the best way to do this kinda thing? assuming i have good C++,PHP,HTML,SQL,CSS skills.