php warning: mysqli_close() expects parameter 1 to be mysqli

后端 未结 1 1273
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 23:12

I am attempting a connection to a sql db via php and keep getting an error I can\'t figure out. I can connect with another debug scripts with no errors. I get my connectio

相关标签:
1条回答
  • 2021-01-02 23:55
    mysqli_close($result);
    

    The line above is incorrect. You only need to call mysqli_close() once (if at all since, as pointed out in the comments, the connection is closed at the end of the execution of your script) and the parameter should be your link identifier, not your query resource.

    Remove it.

    0 讨论(0)
提交回复
热议问题