Forum Moderators: coopster
I am not sure how far you may, or may not, have gotten so far. Here are some threads from our library [webmasterworld.com] that may help
Basics of extracting data from MySQL using PHP [webmasterworld.com]
Help developing MySQL search query [webmasterworld.com]
If it is purely getting an understanding and figuring how to go about it then look through those library threads, there are a few more that may help
such as
[webmasterworld.com...]
Can you please try your best to post relevant code or describe what you are looking for in words instead of a link? Did you try to code what you are looking for with the links provided by jatar_k from above?