Categories and Subcategories do not update - PHP7

0

Starting in programming I'm developing an application with PHP 7 and MySql based on a lost and found site, but with problems creating MENU where my base is in the photo below:

  

I can list the categories and subcategories for it, but clicking on another category does not bring the subcategories because it needs ID of the category.

My question would be as follows, first I would like to click categories to display the subcategory items on the same page, by selecting another category , automatically the subcategory category will be listed and I saw that I can do this with Ajax and jQuery , I tried several methods but I did not succeed.

Would anyone have a similar script or could it give me a north? Maybe some example of how to set up this menu.

    
asked by anonymous 20.11.2017 / 14:10

0 answers