Re: Move to first record mssql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mssql_data_seek() works for me. Maybe you should post the code prior to
what you have provided.

-- bob

On Thu, 20 Jan 2005, Louis Young wrote:

> Hi there
>
> I'm looping through an mssql dataset, using
> while($row=mssql_fetch_array($rsElecTrans)), but now I would like to
> loop through the same dataset again later on, but inn order to do this I
> need to move to the first record, so I tried:
>
> mssql_data_seek($rsElecTrans, 0);
>   while($row=mssql_fetch_array($rsElecTrans)) // this is line 514
>
> But I get the following error:
>
> *Warning*: mssql_fetch_array(): supplied argument is not a valid MS
> SQL-result resource in *C:\Program Files\Apache
> Group\Apache2\htdocs\spar\admin\rpt_electrans.php* on line *514
>
> How does that work?
>
> Cheers
> Louis
> *
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux