执行这个SQL
创新互联公司主营阳新网站建设的网络公司,主营网站建设方案,成都app开发,阳新h5小程序设计搭建,阳新网站营销推广欢迎阳新等地区企业咨询
select user.id, user.pic, user.username, info.page_total
from user
join info on user.id = info.id
order by RAND()
limit 2
把结果放在数组里就成了
As the flagship of the LEXUS auto type, LS owns an inresistably powerful engine and nobleness, which illustrates its excellent designing conception as morden sedan. LEXUS brings us into a new horizon of the aerodynamic sesign, powerful performance, regal decoration and advanced security protection of a sedan. With easy driving, delicate design and rapid and sensible action as the utmost performances, LEXUS LS series tell us what is real luxury. Lofty, elegance and flexible make the delicate body and innovated science/tech an integration, and produce the LEXUS luxurious sedans with mature science and technology and good quality. Elegant appearence and powerful engine make the sedan as your royal residence. LEXUS LS460/LS460L owns lots of world top technology, especially in initiative and passive security protection. Remarkbly, unlimited reserve of power with smooth output makes your driving comfortable and stable
$result = mysql_query($sql);
while ($row=mysql_fetch_row($result))
{
$data[]=$row;
}
print_r($data);
首先这两个表得有个关联字段,进行关联后用concat(a.col1,b.col2)这样即可把第一个表的col1,和第二个表的col2字段连接在一起输出
楼主可以用curl_exec() 从一个页面访问另外一个页面 拿到你的json 然后 json_decode一下 然后跟你本地的进行对比就好了
整合用户用ucenter就行,它是专门干这个的
而且ecshop和discuz都有相应的接口,填写一些信息就可以完成
至于跨数据库显示内容,可以做一个api接口,这个接口只是链接另一个数据库,然后根据相应的参数取不同的数据,然后再需要显示的地方调用这个接口就行
至于怎么调用,用iframe,ajax都可以