Date: 06/20/01
- Next message: Philippe Paravicini: "RE: [phplib] phplib and mod_php4"
- Previous message: Jens Benecke: "[phplib] Nested Menus with PHPLIB + Template"
- In reply to: Brian Popp: "[phplib] Use of the 'Record' Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I use it with Oracle; no problems so far. You just need to know that the
class forces the keys (column names) to lower case. Maybe db_mysql and
others do this too, I don't know...
M.
On Wed, 20 Jun 2001, Brian Popp wrote:
> 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>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Philippe Paravicini: "RE: [phplib] phplib and mod_php4"
- Previous message: Jens Benecke: "[phplib] Nested Menus with PHPLIB + Template"
- In reply to: Brian Popp: "[phplib] Use of the 'Record' Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

