note 30764 added to function.odbc-num-rows
| From: | EC at rack1 dot php dot net | Date: | Thu, 27 Mar 2003 18:55:08 +0000 |
| Subject: | note 30764 added to function.odbc-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45917@lists.php.net to get a copy of this message | ||
This is how I got odbc_num_rows to work...I was getting "-1" and "Resource id
#3" for the result until I added the variable $rows
(code)
$rows = odbc_result_all($sql_result, "border='1'
bordercolor='#003636'");
odbc_num_rows($sql_result);
print "Number of rows:$rows";
odbc_free_result($sql_result);
odbc_close($connection);
?>
(code)
--
http://www.php.net/manual/en/function.odbc-num-rows.php
http://master.php.net/manage/user-notes.php?action=edit+30764
http://master.php.net/manage/user-notes.php?action=delete+30764
http://master.php.net/manage/user-notes.php?action=reject+30764