|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-11 04:09 UTC] kara at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 19:00:01 2025 UTC |
i use odbc_num_rows() can't get rows num only get -1 follow the code i use odbc get dbase & SQL dbase can't get num rows //open dbase $db = odbc_connect("db", "wjw", "wjw"); $result = odbc_exec($db, "SELECT * FROM n64 where etitle like '%'"); echo odbc_num_fields($result)."<br>"; echo odbc_num_rows($result)."<br>"; for ($i=1; $i<=150; $i++) { if (odbc_fetch_row($result, $i)) echo odbc_result($result, 3)."<br>"; } //echo odbc_result_all($result, ""); odbc_close($db); //open ms sql server $db = odbc_connect("ss", "sa", ""); $result = odbc_exec($db, "SELECT * FROM authors"); echo odbc_num_fields($result)."<br>"; echo odbc_num_rows($result)."<br>"; for ($i=1; $i<=150; $i++) { if (odbc_fetch_row($result, $i)) echo odbc_result($result, 4)."<br>"; } //echo odbc_result_all($result, ""); odbc_close($db);