$r = $db->get_one("SELECT * FROM {$DT_PRE}company WHERE username='$pay_user'");注意:username为数据库字段为varchar型,查询是用单引号括住PHP万能跳转header("Location: http://www.baidu.com"); 去掉http,跳转本系统网站