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...
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
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
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
>
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
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
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
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
>
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