For example, I have created two pages and two MySQL tables.
Index.php & citys.php
Index.php
citys.php
citys
ID
select * from citys left join comments on comments.city = citys.city where citys.id=$id