PHP 忒聊
綴豖
ヶ輛
ibase_num_fields
(PHP 3 = 3.0.7, PHP 4)
Description
Returns an integer containing the number of fields in a result set.
?php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); if (ibase_num_fields($sth) 0) {while ($row = ibase_fetch_object ($sth)) {print $row- email. "\n";}} else {die ("No Results were found for your query");} ibase_close ($dbh);?
See also: ibase_field_info().
綴豖
れ萸
ヶ輛
ibase_free_result
奻珨撰
ibase_pconnect