无法连接 - 数据库或编码错误

时间:2012-09-27 01:47:02

标签: php mysql cakephp mysqli

我们上传了网站,网站http://bartanwale.gls.in显示错误:

"could not connect"

我们也已经纠正了各种各样。

我们检查了代码的每一部分

我们已经仔细检查了数据库。

请使用我们发现以下错误的firebug帮助我们解决错误 - 他们无需执行任何操作。

The character encoding declaration of the HTML document was not found when 
prescanning the first 1024 bytes of the file. When viewed in a 
differently-configured browser, this page will reload automatically. The encoding
declaration needs to be moved to be within the first 1024 bytes of the file.

<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>

The character encoding declaration of the HTML document was not found when 
prescanning the first 1024 bytes of the file. When viewed in a 
differently-configured browser, this page will reload automatically. 
The encoding declaration needs to be moved to be within the first 1024 bytes of 
the file.


...(u){r=u.arguments?'chrome':u.stack?'firefox':window.opera&&!('stacktrace' in u)?...

请指南。

1 个答案:

答案 0 :(得分:0)

我在您的源代码中发现了这个错误,在div中,现在显示为“无法连接:”

警告:mysql_fetch_array()要求参数1为资源,在 /home/bartanwa/public_html/bartanwale/trendcart/api/api_methods.php 中给出布尔值 753

也许你可以粘贴错误中引用的php doc第753行的一些代码?