I have this html code for a menu with sub-menu:
<li class="has-submenu">
                                <a href="#">Services</a>
                                <div class="mainmenu-submenu">
                                    <div class="mainmenu-submenu-inner"> 
                                        <div>
                                            <h4>Home</h4>
                                            <ul>
                                                <li><a href="#">Plumbers</a></li>
                                                <li><a href="#">Painters</a></li>
                                            </ul>
                                            <h4>People</h4>
                                            <ul>
                                                <li><a href="#">Babysitter</a></li>
                                                <li><a href="#">Trainer</a></li>
                                            </ul>
                                            <h4>School</h4>
                                            <ul>
                                                <li><a href="#">Teacher</a></li>
                                            </ul>
                                        </div>
                                        <div>
                                            <h4>Machine</h4>
                                            <ul>
                                                <li><a href="#">Mecanic</a></li>
                                            </ul>
                                            </div>
                                </div>
                            </div>
                        </li>
Then I have this table called "services":
id  |    name   | service   | description    
  1       Mario    Plumber         aaa        
  2       Luigi    Plumber         aaa      
  3       Link     Painter         aaa      
  4       Zelda    Babysitter      aaa      
  5       Sonic    Trainer         aaa      
  6       Marth    Teacher         aaa      
  7        Ike     Trainer         aaa      
  8     Little Mac Mecanic         aaa 
I want to create a code that shows me the results only associated with that sub-menu. For example, if I press Plumbers in the sub-menu, I want it to only show me the plumbers from my table. The PHP code I use is:
$query = "SELECT * FROM services WHERE service LIKE service";
                    $result = mysql_query($query) or die(mysql_error());
                    $casaArray = array();
But I can only get it to show me all the services. I'm new to PHP.
Thanks for your help.
 
     
     
    