|
Posted by Sonnich on 10/13/06 18:42
Sonnich wrote:
> Hi!
>
> I get this error: PHP has encountered an Access Violation at 04C3451C
>
> It occurs at the while line, as I get a and b, but not c. I run this
> a number of times, but the 3 first times it works, at the fourth, which
> returns 2 rows, results in this error at that point.
> Why?
By a closer look the 3 first runs DO NOT return any data.
The result at the point is still 2 rows.
>
> echo "#a ";
> if(odbc_num_rows($result)>1)
> {
> echo "#b ";
> while(odbc_fetch_row($result))
> {
> echo "#c ";
> $itemtosearch1[]=odbc_result($result,1);
> $itemtosearch2[]=odbc_result($result,2);
> }
> }
Navigation:
[Reply to this message]
|