在rms_report_function.php中调用get_rms_report函数,没有问题,我写了另一个php,代码如下:
require(DIR_ROOT.DIR_RMS.'rms_report/rms_report_function.php');
$shop_array = array();
$shop_array = get_rms_report('002');
echo json_encode($shop_array);
然后就报错:
Fatal error: Call to a member function assign() on a non-object in
这种情况该怎么解决呢?
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273588633666_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273797243035_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273835157102_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273868024344_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273868024344_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273896225815_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273918314962_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273935346180_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273946996125_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273956854060_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273956854060_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273974597750_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48273991924348_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48274003343078_html
http://www_diaoyanba_com/survey/SurveyQuestions_depth_48274012566540_html