Move to first record mssql

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

 



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


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

  Powered by Linux