note 25982 added to function.odbc-num-rows
| From: | Christian dot Schlager at t-online dot de | Date: | Mon, 14 Oct 2002 10:21:13 +0000 |
| Subject: | note 25982 added to function.odbc-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38044@lists.php.net to get a copy of this message | ||
odbc_num_rows returns -1 with the drivers i'm using, too.
Using the keyword DISTINCT in the select-statement makes the function return the correct number of
rows.
Alas, this doesnt work if i want to select text from a table, because in this case, you cant use
DISTINCT.
Anyway, i hope it helps.
--
http://www.php.net/manual/en/function.odbc-num-rows.php
http://master.php.net/manage/user-notes.php?action=edit+25982
http://master.php.net/manage/user-notes.php?action=delete+25982
http://master.php.net/manage/user-notes.php?action=reject+25982