hlstriker Posted July 16, 2009 Share Posted July 16, 2009 I'm wondering if it's possible to store a class object into a MySQL database? If this is possible to do, would it be better to store the class object itself - or - would it be better to store each variable in the class, and rebuild the object on retrieval? Link to comment https://forums.phpfreaks.com/topic/166140-insert-php-class-object-into-mysql-database/ Share on other sites More sharing options...
play_ Posted July 16, 2009 Share Posted July 16, 2009 You can try serealize(), but that's generally a bad idea. Another option - few months ago, i came across a project, it was a layer between PHP and MYSQL that allowed this to happen. Don't remember what it was called, maybe google can help =) Link to comment https://forums.phpfreaks.com/topic/166140-insert-php-class-object-into-mysql-database/#findComment-876203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.