[Solved] Notice: Use of undefined constant

Notice: Use of undefined constant :

 

This is one of the familiar exception in PHP.

 

Example PHP Source code which creates

notice: use of undefined constant


define(HOST, 'localhost');
define(USERNAME, 'root');
define(PASSWORD, '');

 

 

How it can be solved ?


define('HOST', 'localhost');
define('USERNAME', 'root');
define('PASSWORD', '');

 

 

Feel free to post your comments……

983 total views, 4 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.