连接相同的数据库,在本地测试,没有出错;上传到服务器(centos7)后,运行报错:SQLSTATE[HY000]: General error: 2053,但是echo能正常输出,是不是tp5查mysql数据库函数,有特殊方法。代码如下: <?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Tboss extends Controller{
public function index() {
echo 'hello,world';
$Log = Db::query("call GetBossbyOpenid('orbi4t9PAgpRpQKGZFzEhiM8M')");
dump($Log);
}
}PHP新手跪求大佬解答,谢谢!
namespace app\index\controller;
use think\Controller;
use think\Db;
class Tboss extends Controller{
public function index() {
echo 'hello,world';
$Log = Db::query("call GetBossbyOpenid('orbi4t9PAgpRpQKGZFzEhiM8M')");
dump($Log);
}
}PHP新手跪求大佬解答,谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货