几年前写过类似的垃圾教程,今天因为需求原因,重新写了下教程,其实就是简单的sql查询! 获取指定uid用户的信息
如下获取的就是uid等于1和2的用户信息
fetchAll($db->select()->from ('table.users')->where ('table.users.uid in ?',$id));
print_r($userinfo);
?>
如下获取的就是uid等于1的用户信息
fetchRow($db->select()->from ('table.users')->where ('table.users.uid = ?','1'));
print_r($userinfo);
?>
fetchAll($db->select()->from ('table.users'));
print_r($userinfo);
?>
linkCard('.post-content','0');
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有