thinkphp查询不出来数据,在本地可以,但是在FTP上就不行了

WBOY
Release: 2016-06-23 13:49:39
Original
1234 people have browsed it

public function index() {		//列表过滤器,生成查询Map对象				$map = $this->_search ();		if (method_exists ( $this, '_filter' )) {			$this->_filter ( $map );		}		$this->assign ( 'gametype', C('gametype') );		$this->assign ( 'gametype_two', C('gametype_two') );		$name=$this->getActionName();		$model = D($name);		if (! empty ( $model )) {		 $this->_list ( $model, $map );		}	 		$this->display ();		return;	}
Copy after login


回复讨论(解决方案)

配置文件修改正确了吗?

配置文件修改正确了吗?


修改正确。在本地localhost可以,正常。但是在FTP上就不行了。是不是区分大小写原因?

提供的信息太少了,有无错误信息,打开错误提示功能看看。

已经做出来了,是Model层的数据库名错了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template