Deprecated: mysql_connect()

前端 未结 15 1471
醉酒成梦
醉酒成梦 2020-11-22 06:55

I am getting this warning, but the program still runs correctly.

The MySQL code is showing me a message in PHP:

Deprecated: mysql_connect(): T

15条回答
  •  梦谈多话
    2020-11-22 07:45

    To suppress the deprecation message for this alone (and stay informed of other deprecations in your code) you can prefix the connect with @:

     
    

提交回复
热议问题