更新时间:2023-11-15 21:11:28
最后一个var_dump
表示连接正常.您的问题是您在ValidateForm()
函数中引用$conn
而没有在该函数中声明global $conn
.
The last var_dump
indicates that the connection is working fine. Your problem is that you're referring to $conn
in the ValidateForm()
function without declaring global $conn
in that function.