I still get the same response.
Gurhan Ozen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi ...
Get rid of the if($rs) block...
Just do:
while ($row = mssql_fetch_array($rs));
{
echo $row[ItemClassKey];
echo br;
}
Gurhan
-Original
Are you sure???
Did you make sure that the ItemClassKey field is not empty?
Gurhan
-Original Message-
From: Benjamin Walling [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mssql_fetch_array not working?
I still get the same
It's the ';' at the end of the while statement. It runs the loop with no
statements in it, then executes the code in brackets. I copied some bum
code from a tutorial...
Peter Lovatt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi
The code looks OK
Try
I thought about that while I was copying the code from the tutorial. I know
a little C++, and it seemed wrong, but I let it go.
Thanks.
Terry Romine [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Do I see a semicolon at the end of the while? that won't
PM
To: Gurhan Ozen
Cc: Benjamin Walling; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mssql_fetch_array not working?
Do I see a semicolon at the end of the while? that won't work...
On Monday, May 13, 2002, at 04:35 PM, Gurhan Ozen wrote:
while ($row = mssql_fetch_array($rs)) _;_
should
-
From: Terry Romine [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 22:41
To: Gurhan Ozen
Cc: Benjamin Walling; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mssql_fetch_array not working?
Do I see a semicolon at the end of the while? that won't work...
On Monday, May 13, 2002, at 04:35 PM