* Thus wrote bruce: > hi... > > i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, > on a linux rh8.0 system. > > i believe the code was written for php4. > > the code is: > > if($rec) > { > $rs->append($setDefaults); > $rs->rows[$rs->pos]->fields=$rec; <<<<<<generates err msg... >... > > the err msg being generated is: > Php-Txt-Db-Access Error: > PHP Error: [2048] Creating default object from empty value [Line: 1537] > [File: /var/www/html/blast/txtdbapi/resultset.php] This is because the element in $rs->rows[$rs->pos] is not defined so php made a stdClass before it can assign the ->fields member. Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php