[phplib] Use of the 'Record' Property From: Brian Popp (bpopp <email protected>)
Date: 06/20/01

How safe is it to use the 'Record' property of the PHPLib database class?
The documentation states that this is an internal property (which typically
shouldn't be used), but I see many people using it. I, myself, use it
frequently to set all the template variables on a form to the values of a
database query (like so):

        while ( list ( $key, $val ) = each ( $db->Record ) )
        {
                if ( GetType ($key) != "string" ) continue;
                
                eval ( "$" . $key . " = \"$val\";" );
                if ( $val ) $t->set_var ( $key, $val );
        }

This works fine with ODBC and MySql. Anyone know if it will work with
Postgres, Sybase, and/or Oracle?

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>