note 88157 deleted from function.ifx-num-rows by cmb
| From: | cmb@php.net | Date: | Wed, 04 Nov 2020 21:23:19 +0000 |
| Subject: | note 88157 deleted from function.ifx-num-rows by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215809@lists.php.net to get a copy of this message | ||
Note Submitter: evandrosimenes at hotmail dot com
----
if you use this function following:
<?php
$query = ifx_query("SELECT * FROM systables", $connection);
$rows = ifx_num_rows($query);
?>
this way it doesn't work...
the correct is:
<?php
$query = ifx_query("SELECT * FROM systables", $connection);
$fetch = ifx_fetch_row($query);
$rows = ifx_num_rows($query);
?>
this way it work...
the informix doesn't returns anything (only with ifx_num_rows) if you don't open the
results of query (with ifx_fetch_row)