@mysql_connect and mysql_connect

后端 未结 5 1480
野趣味
野趣味 2021-02-06 01:22

I have no problem connecting to a database using PHP however in some scripts I have tested, I have seen a small difference in the connect command.

What is the differenc

5条回答
  •  执念已碎
    2021-02-06 01:58

    The @ symbol in front of a function silences it. Meaning, you won't get any types of error messages when executing it, even if it fails. So I suggest: don't use it

    In addition as @AlexanderLarikov said, don't use mysql_* anymore, the community has started to depreciate that function.

提交回复
热议问题