note 88157 modified in function.ifx-num-rows by danbrown
| From: | danbrown@php.net | Date: | Wed, 14 Jan 2009 01:10:15 +0000 |
| Subject: | note 88157 modified in function.ifx-num-rows by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149169@lists.php.net to get a copy of this message | ||
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)
--was--
if you use this function following:
$query = ifx_query("SELECT * FROM systables", $connection);
$rows = ifx_num_rows($query);
this way it doesn't work...
the correct is:
$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)
http://php.net/manual/en/function.ifx-num-rows.php