To get number of rows from SELECT, use ocirowcount function instead of oci_num_rows().
Though this is an alias of oci_num_rows, the behavior for this is different as oci_num_rows will return you only rows affected by DML statements
説明
警告
このエイリアスは PHP 5.4.0 で 非推奨 となりました。 このエイリアスを使用しないことを強く推奨します。
Ved Prakash
12-Jul-2010 12:28
