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? Quote Link to comment 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 =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.