This problem has not been solved before. This problem occurs when php is upgraded to 5.4. php code {code ...} connect. php code {code ...} index. php code {code ...} next, the problem arises. If I am in index. connect. php, php error, prompt me ho... this problem has not been solved before. This problem occurs when php is upgraded to 5.4.
Code in config. php
Code in connect. php
connect_error){ die('Connect Error:'.$mysqli->connect_error);}$mysqli->set_charset('utf8');?>
Code in index. php
Next, the problem arises.index.phpIntroduced inconnect.php, Php error, prompt mehost username password datebaseThese constants are not defined.
However
This is normal. How can this problem be solved?
Reply content:
This problem has not been solved before. This problem occurs when php is upgraded to 5.4.
Code in config. php
Code in connect. php
connect_error){ die('Connect Error:'.$mysqli->connect_error);}$mysqli->set_charset('utf8');?>
Code in index. php
Next, the problem arises.index.phpIntroduced inconnect.php, Php error, prompt mehost username password datebaseThese constants are not defined.
However
This is normal. How can this problem be solved?
I think this should be helpful to you, and there is no code on the way home.
Http://m.111cn.net/art-42982.htm
Try changing the defined constant name to uppercase.
New mysqli (host, username, password, database );
New mysqli ($ host, $ username, $ password, $ database );
Do you understand?