PHP 8.5.0 Alpha 1 available for testing

Voting

: min(seven, six)?
(Example: nine)

The Note You're Voting On

masuod_a at hotmail dot com
23 years ago
This function not availible in PHP 4.1.1 , you can try this :

if (function_exists(odbc_fetch_object))
return;
function odbc_fetch_object($result, $rownumber=1) {
$rs=array();
odbc_fetch_into($result, $rownumber,$rs);
foreach ($rs as $key => $value) {
$fkey=strtolower(odbc_field_name($result, $key+1));
$rs_obj->$fkey = $value;
}
return $rs_obj;
}
if you wanna use this function in a loop you must set rownumber parameter
you can't use this function like :
while ($myobj=odbc_fetch_object($res)) {
....
}

<< Back to user notes page

To Top