会员完善资料问题
有网友反应,企业完善资料有问题。我的数据是从别的B2B自己转过来的,开始以为自己的数据错误,后来发行,程序有一点不足的地方。edit.inc.php
[*]
[*]$user = $do->get_one();
[*]
[*]复制代码
我输出不了数据。
member.class.php
[*]
[*]
[*] function get_one($username = '') {
[*]$condition = $username ? "m.username='$username'" : "m.userid='$this->userid'";
[*] return $this->db->get_one("SELECT * FROM {$this->tb_member} m,{$this->tb_company} c WHERE m.userid=c.userid AND $condition limit 0,1");
[*] }
[*]
[*]
[*]复制代码
get_one既是数据库操作类的一个函数,edit程序这样调用是否有问题?我把这个改成get_one_1后没有问题。
后来发现好多地方用到$user = $do->get_one();
希望官方看一下。。。。
需要先初始化 $do->userid
edit.inc.php 开头已经使用了 $do->userid = $_userid;
$db->get_one();是操作数据库的
页:
[1]