Re: Move to first record mssql
| From: | Robert Twitty | Date: | Fri, 21 Jan 2005 00:43:14 +0000 |
| Subject: | Re: Move to first record mssql | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25415@lists.php.net to get a copy of this message | ||
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
>
>