我们知道php在数组中写变量有二几种方法,我们出现这种提示就是你写成了[name]这种所以会有Notice: Use of undefined constant name - assumed name提示了,解决办法参考下文。
关闭 PHP 提示的方法,搜索php.ini:
error_reporting = E_ALL 改为:error_reporting = E_ALL & ~E_NOTICE
还有个不是办法的办法就是,在每个文件头上加
error_reporting(0); 虽然不好弄但是可以解决问题,如果没有修改php.ini权限的朋友可参考我的方法来解决,源文件:
$room[name] = $Name; $room[retailrate] = $RetailRate;
改成
$room['name'] = $Name; $room['retailrate'] = $RetailRate;
文章网址:
随意转载^^但请附上教程地址。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version
Recommended: Win version, supports code prompts!

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1
Powerful PHP integrated development environment