PHP 8.5.0 Alpha 1 available for testing

Voting

: seven plus one?
(Example: nine)

The Note You're Voting On

general at maccrafters dot com
22 years ago
Here's a bit of code I came up with tha behaves just like mysql_fetch_object()

function odbc_fetch_object($result)
{
$rs=array();
if(odbc_fetch_into($result,&$rs))
{
foreach($rs as $key=>$value)
{
$fkey=strtoupper(odbc_field_name($result,$key+1));
$rs_obj->$fkey = trim($value);

}
}
return($rs_obj);
}

Special thanks to previous posters for giving me a starting point for this code.

<< Back to user notes page

To Top