Unable to submit data
岸上鱼
岸上鱼 2021-09-28 00:42:28
0
2
998

出错:function construct()

Fatal error: Cannot redeclare construct() (previously declared in

岸上鱼
岸上鱼

reply all(1)
逆旅行人

The error screenshot is complete. The current error shows that the constructor has been declared repeatedly

  • reply There is no duplication. It is the package below. There is no problem in face-to-face testing. function MySQLModel(){ $link = null; function mylink(){ // include 'conn.php'; // $link = mysqli_connect(HOST,USER,PASS,DBNAME) or die('Prompt: Database connection failed!'); define("HOST","localhost"); //Host name define("USER","root"); //Account define("PASS","root"); //Password define("DBNAME","fanfancy"); //database name $link = mysqli_connect(HOST,USER,PASS,DBNAME) or die('Prompt: Database connection failed!'); return $link; } $link = mylink();
    岸上鱼 author 2021-09-28 11:29:19
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template