Re: [PHP] Class/object storing itself in a database

2005-03-14 Thread Zareef Ahmed
On Mon, 14 Mar 2005 12:11:40 -0800, Robby Russell <[EMAIL PROTECTED]> wrote: > On Mon, 2005-03-14 at 14:07 -0600, Chris Boget wrote: > > I have the following Class: > > > > class MyClass { > > function store_myself() { > > $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; >

Re: [PHP] Class/object storing itself in a database

2005-03-14 Thread Robby Russell
On Mon, 2005-03-14 at 14:07 -0600, Chris Boget wrote: > I have the following Class: > > class MyClass { > function store_myself() { > $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; > $result = mssql_query( $query ); > } > } > > which works. Kind of. What I expec

[PHP] Class/object storing itself in a database

2005-03-14 Thread Chris Boget
I have the following Class: class MyClass { function store_myself() { $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; $result = mssql_query( $query ); } } which works. Kind of. What I expected was a serialized copy of the object to be stored in the column myfield