Hello all ! ! !
I need a litle help on how to do some search on a MySQL Database.
I plan to create a Web Business Directory. That directory will be consists of three main tables. (Propably I will need more than three, but for more easy explain I say three for now)
The first one will be a table that will store inside the cities and the areas of my country as a tree, by using the lft, rgt model.
The second one will store inside business categories and sub categories as a tree too, by using again the lft, rgt model.
The third one table will contain the business info, such as company name, description, some google map locations, phones, and so on.
THE QUESTION NOW :
The question is how can I search all that informations after the project building ? ? ? I know how to search in a field by it seld, but how can I compine many fields based on the search creteria to extract the informations from the data.
I have this question because if the cliend will try to search something like that : " bars in street name ", or search for something like that "hotels in city name" how to get all that informations from the database ? ? ?
Thanks a lot ! ! !
When I mean the lft rgt model I mean a table like that
ID NAME right_count left_count