My (poor?) Reasoning:
1. Looping through using odbc_result seems to take longer in my testing (small scale - using the following method):
PHP Code:
$out = null; while ($row = odbc_fetch_row($rs)) { foreach(range(1,odbc_num_fields($rs)) as $i) {$out .= odbc_result($rs,$i).",";} $out = substr($out,0,-1)."\n"; }
2. I only recently stumbled across the function odbc_result_all and subsequently felt like a... fool for looping through the recordset in order to (essentially) do the same thing in countless scripts/apps to date.
3. Given the popularity of delimited based import/export and the existence of the aforementioned function (odbc_result_all) I naturally assumed that I just missed a similar function with similar purpose. Perhaps: odbc_result_csv? or the like.
Last edited by Envision_frodo; 05-10-2010 at 05:21 PM..
Reason: Fix Error
|