As mentioned, the @ suppresses any errors, warnings, notices, etc that the
command will give. This is typically considered really bad programming
practice.
If you resort to using an @ to suppress, one of two things is an issue:
1. Either error reporting is set to high and you're getting warnin
Hi List,
First post, hope this is alright :)
I'm running: Windows Server 2003, IIS 6.0, PHP 5.1.4 (ISAPI), AMFPHP
1.2.5, MySQL 5.0.24.
The box is getting a *lot* of hits. A gateway PHP file is being called
about 1,000,000 times per day.
I've got error logging enabled, and I find there's a lot
The @ is for error suppression
-Original Message-
From: Alf Stockton [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 12:00 AM
To: php-windows
Subject: [PHP-WIN] @mssql_connect() versus mssql_connect()
What is the difference between @mssql_connect() and mssql_connect()?
i.e. What
Alf Stockton wrote:
> Niel Archer wrote:
>
>> Hi Alf
>>
>> You'd be better off asking this type of question in the database list.
>> I'm not familiar with MS-SQL, the syntax doesn't look much different to
>> the MySQL flavour.
>>
>>
I do not believe that I am misunderstanding MSSQL. What I
Alf Stockton wrote:
> Niel Archer wrote:
>
>> Hi Alf
>>
>> You'd be better off asking this type of question in the database list.
>> I'm not familiar with MS-SQL, the syntax doesn't look much different to
>> the MySQL flavour.
>>
>> When you say " whether the query works or not" do you mean th
Niel Archer wrote:
> Hi Alf
>
> You'd be better off asking this type of question in the database list.
> I'm not familiar with MS-SQL, the syntax doesn't look much different to
> the MySQL flavour.
>
> When you say " whether the query works or not" do you mean the query is
> failing with an error