PHP 出错 Use of undefined constant prop_values - ass.

WBOY
Release: 2016-06-13 12:03:08
Original
1027 people have browsed it

PHP 报错 Use of undefined constant prop_values - ass...

问题如下:

PHP 程序 出现下面错误 是什么原因。
Notice: Use of undefined constant multi - assumed 'multi' in /www/users/***.com/tb/edittbgoods.php on line 104Notice: Use of undefined constant must - assumed 'must' in /www/users/***.com/tb/edittbgoods.php on line 105Notice: Use of undefined constant must - assumed 'must' in /www/users/***.com/tb/edittbgoods.php on line 105Notice: Use of undefined constant name - assumed 'name' in /www/users/***.com/tb/edittbgoods.php on line 106Notice: Use of undefined constant name - assumed 'name' in /www/users/***.com/tb/edittbgoods.php on line 106Notice: Use of undefined constant pid - assumed 'pid' in /www/users/***.com/tb/edittbgoods.php on line 107

?

这个不是报错,是说你的定义不规范。
如果没猜错的话你的变量应该是 $xxx[multi] = $xxx;这样的吧。改成$xxx[‘multi’] = $xxx;加上引号应该就可以了。

还有一种解决办法就是修改php.ini 找到error_reporting = E_ALL 改为 error_reporting = E_ALL & ~E_NOTICE。但是还是建议使用第一种解决办法,能规范的尽量规范一些没有坏处。

以上,供参考。

?

原文:http://www.csdn123.net/a/zhidao/20131121pm/195002.htm

?

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!