note 38041 added to function.mssql-fetch-row
| From: | zombie at rn2 dot php dot net | Date: | Fri, 05 Dec 2003 18:50:21 +0000 |
| Subject: | note 38041 added to function.mssql-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61459@lists.php.net to get a copy of this message | ||
It seems that when you use the MSSQL fetch_* functions you need to manually reset the $result
's internal pointer when doinging a while loop.
i.e.the below seems to only print out the first set. I don't remember this being the case with
mysql, but it makes sense that it would do the same.
while ($or_date_info = mssql_fetch_assoc($result)){
echo '1st pass<BR>';
print_r($or_date_info);
}
while ($or_date_info = mssql_fetch_assoc($result)){
echo '2nd pass<BR>';
print_r($or_date_info);
}
Blaine Garrett
http://artattack.to?zombie
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-row.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38041
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38041&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38041&report=yes
Search -- http://master.php.net/manage/user-notes.php