Query: fbsql_fetch_object
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FBSQL_FETCH_OBJECT(3) 1 FBSQL_FETCH_OBJECT(3) fbsql_fetch_object - Fetch a result row as an objectSYNOPSISobject fbsql_fetch_object (resource $result)DESCRIPTIONfbsql_fetch_object(3) is similar to fbsql_fetch_array(3), with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names). Speed-wise, the function is identical to fbsql_fetch_array(3), and almost as quick as fbsql_fetch_row(3) (the difference is insignifi- cant).PARAMETERSo $ result -A result identifier returned by fbsql_query(3) or fbsql_db_query(3).RETURN VALUESReturns an object with properties that correspond to the fetched row, or FALSE if there are no more rows.EXAMPLESExample #1 fbsql_fetch_object(3) example <?php fbsql_connect($host, $user, $password); $result = fbsql_db_query("database", "select * from table"); while ($row = fbsql_fetch_object($result)) { echo $row->user_id; echo $row->fullname; } fbsql_free_result($result); ?>SEE ALSOfbsql_fetch_array(3), fbsql_fetch_row(3), fbsql_fetch_assoc(3). PHP Documentation Group FBSQL_FETCH_OBJECT(3)
Related Man Pages |
---|
mssql_fetch_object(3) - php |
fbsql_fetch_row(3) - php |
fbsql_list_dbs(3) - php |
fbsql_result(3) - php |
msql_fetch_object(3) - php |
Similar Topics in the Unix Linux Community |
---|
unix |
File splitter by nth row |
row Comparison |
Summing data on N. row of each line |
In php, Moving a new row to another table and deleting old row |