After learning PHP, I usually look at the manual and the Development of PHP and mysql web.
I recently encountered a problem on the entire message board.
Many pages are similar to Notice: Use of undefined constant title-assumed 'title' in D: \ wamp \ www \ phpmysqlweb \ bbs \ list. php on line 17
The page is ugly and tangled. I use the wamp integration package.
Baidu, it seems that many friends also have this situation.
Notice indicates that no declared variables are used, but the program will not affect the usage. It is no wonder that it can still run normally, but it is not elegant.
There are four solutions:
1: Initialize
2: Open the php. ini file.
Modify configuration file
Error_reporting settings:
Locate error_reporting = E_ALL
Change to error_reporting = E_ALL &~ E_NOTICE
3: Use include to convert error_reporting (E_ALL &~ E_NOTICE); write it in // The sky, because it is a lazy person, afraid to open this one .....
4: Add error_reporting (0) at the top of the file );
We are ready to engage in PHP, but this strange problem has been solved by Baidu, Shenma, and Baidu.
My new friends noticed that when the page reported an error, I checked the Code and whether there was a semicolon or parentheses missing. I just made some careless mistakes.
My path to PHP is doomed to be difficult, but I will not give up. I must do it well. Come on.