wb_result_all
integer wb_result_all( resource cursor [, string format] )
Parametry
-
cursor
- Identifier of a cursor returned by the wb_exec or wb_psql_execute function.
-
format
- String that will be added to the opening HTML attribute <table>. Optional parameter.
Popis
This function displays the cursor contents as a HTML table, with the table name in the first row. If the global parameter binmode is set to WB_PASSTHRU, values of variable-length types are not displayed. The length of variable-length type values that are displayed is set by the global parameter longreadlen.
Návratová hodnota
FALSE if an error occurs, the count of displayed records if succesful.
Příklad
Display the query contents as a table quickly and easily:
$res=wb_exec($conn, "SELECT * FROM ...");
wb_result_all($res,"border=1");