RE: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Peter Lovatt
age- > 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...

RE: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Gurhan Ozen
2002 5:41 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

Re: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Benjamin Walling
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 wo

Re: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Benjamin Walling
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 >

RE: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Gurhan Ozen
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

Re: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Terry Romine
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 be while ($row = mssql_fetch_array($rs)) { ... } Terry Romine Web Developer J

RE: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Peter Lovatt
hi The code looks OK Try something like while ($row = mssql_fetch_array($rs)); { echo "another row"; echo $row["ItemClassKey"]; echo ""; } } to see if it is looping thro the results, if so then the array $row["ItemClassKey"] is em

Re: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Benjamin Walling
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 ""; > } > > Gurhan >

RE: [PHP-DB] mssql_fetch_array not working?

2002-05-13 Thread Gurhan Ozen
Hi ... Get rid of the if($rs) block... Just do: while ($row = mssql_fetch_array($rs)); { echo $row["ItemClassKey"]; echo ""; } Gurhan -Original Message- From: Benjamin Walling [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 5:16 PM To: [EMAIL PROTECTED] Subject: [PHP-D