PHP速学视频免费教程(入门到精通)
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
mysql 一个表有多个键 对应另一个表的id
两个表的对应关系:<code class="prettyprint linenums lang-php">$user_address=D('UserAddress')->query("SELECT m.id,name,phone,address,m.province,n.areaname,m.city,o.areaname as area2name, m.district,p.areaname as area3name FROM `ez_user_address` as m INNER JOIN ez_area as n on m.province=n.id INNER JOIN ez_area as o on m.city=o.id INNER JOIN ez_area as p on m.district=p.id WHERE m.id=1");<br>
// dump($user_address);exit;
打印结果:
已抢5911个
抢已抢83543个
抢已抢13561个
抢已抢48002个
抢已抢182609个
抢已抢84054个
抢