Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 调用存储过程时出错_Php_Mysql_Codeigniter - Fatal编程技术网

Php 调用存储过程时出错

Php 调用存储过程时出错,php,mysql,codeigniter,Php,Mysql,Codeigniter,嗨,朋友们,我在使用PHP从codeIgniter中的mysql数据库调用select存储过程时得到以下信息: 发生数据库错误 错误号码:1305 过程登录\表单。选择\成员不存在 调用select_成员() 文件名:C:\xampp\htdocs\system\database\DB\u driver.php 电话号码:330 型号: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); clas

嗨,朋友们,我在使用PHP从codeIgniter中的mysql数据库调用select存储过程时得到以下信息:

发生数据库错误 错误号码:1305 过程登录\表单。选择\成员不存在 调用select_成员() 文件名:C:\xampp\htdocs\system\database\DB\u driver.php 电话号码:330

型号:

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Members_model extends CI_Model 
{
    function select_members() 
    {
        $query = $this->db->query("CALL select_members()");
        return $query->result_array();
    }
}
?>


请帮助我如何解决此问题。

您的错误消息清楚地说明了这一点-您必须先创建您试图调用的过程,或者只创建到存在的corect数据库。是否打印存储过程?