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 difference between @mysql_connect and mysql_connect ?
I have never used the @ symbol when writing my own script so was just wondering if it served a purpose.
Thanks in advance
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 itIn addition as @AlexanderLarikov said, don’t use
mysql_*anymore, the community has started to depreciate that function.