Join two MySQL tables with PHP

前端 未结 2 391
滥情空心
滥情空心 2020-12-11 10:36

For example, I have created two pages and two MySQL tables.

Index.php & citys.php

citys

 ID            


        
2条回答
  •  执笔经年
    2020-12-11 11:11

    select * from citys 
    left join comments on comments.city = citys.city 
    where citys.id=$id
    

提交回复
热议问题