Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-13 Thread Alf Stockton
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

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-13 Thread Alf Stockton
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

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-13 Thread Alf Stockton
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

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Frank M. Kromann
Hi Alf, As far as I can tell it's working just fine. Hre is a sample: and here is the output: bool(true) Warning: mssql_query(): message: Syntax error converting the varchar value 'aa' to a column of data type int. (severity 16) in C:\php5\test\mssql_error.php on line 10 Warning: mssql_query

Re: [PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Niel Archer
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, or it simply returns no data?

[PHP-WIN] Checking for result of call to mssql_query()

2006-10-12 Thread Alf Stockton
Am I misunderstanding the PHP Manual, where it says:- mixed *mssql_query* ( string query [, resource link_identifier [, int batch_size]] ) Returns: A MS SQL result resource on success, *TRUE* if no rows were returned, or *FALSE* on error. and my code reads:- $Reply = mssql_query($insert, $link)