Date: 06/20/01
- Next message: Clemens Hermann: "[phplib] phplib and mod_php4"
- Previous message: nathan r. hruby: "Re: [phplib] php bugtracker / helpdesk app?"
- Next in thread: Mikhail Avrekh: "Re: [phplib] Use of the 'Record' Property"
- Reply: Mikhail Avrekh: "Re: [phplib] Use of the 'Record' Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Clemens Hermann: "[phplib] phplib and mod_php4"
- Previous message: nathan r. hruby: "Re: [phplib] php bugtracker / helpdesk app?"
- Next in thread: Mikhail Avrekh: "Re: [phplib] Use of the 'Record' Property"
- Reply: Mikhail Avrekh: "Re: [phplib] Use of the 'Record' Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

