|
我用3.0的版本 在我本地机器上用xampp的环境能否正常访问, 上传到服务器 服务器是centos 单独安装的apache mysql php 一涉及到数据库访问的时候就是失败了
$sql = "SELECT customer_id, name, zjm FROM customer";
$this->load->database();
$query = $this->db->query($sql);
load是正常的,执行query就停止了 日志信息里面是
INFO - 2016-01-31 00:52:37 --> Config Class Initialized
INFO - 2016-01-31 00:52:37 --> Hooks Class Initialized
DEBUG - 2016-01-31 00:52:37 --> UTF-8 Support Enabled
INFO - 2016-01-31 00:52:37 --> Utf8 Class Initialized
INFO - 2016-01-31 00:52:37 --> URI Class Initialized
INFO - 2016-01-31 00:52:37 --> Router Class Initialized
INFO - 2016-01-31 00:52:37 --> Output Class Initialized
INFO - 2016-01-31 00:52:37 --> Security Class Initialized
DEBUG - 2016-01-31 00:52:37 --> Global POST, GET and COOKIE data sanitized
INFO - 2016-01-31 00:52:37 --> Input Class Initialized
INFO - 2016-01-31 00:52:37 --> Language Class Initialized
INFO - 2016-01-31 00:52:37 --> Loader Class Initialized
INFO - 2016-01-31 00:52:37 --> Controller Class Initialized
INFO - 2016-01-31 00:52:37 --> Model Class Initialized
INFO - 2016-01-31 00:52:37 --> Model Class Initialized
INFO - 2016-01-31 00:52:37 --> Database Driver Class Initialized
请问是怎么回事呢?
|
|