| Gustav Wiberg 2007-06-26, 7:03 pm |
| Hi there!
Ok, thanx! I'll try this...
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Dale Attree [mailto:dale@jacklinenterprises.com]=20
Sent: Tuesday, June 26, 2007 3:12 PM
To: 'Gustav Wiberg'; ''php windows''
Subject: RE: [PHP-WIN] Save classes to db?
Hi there,
You would use a blob or text field.
You will have to serialize the object before saving it to db.
Then when you retrieve it, you will have to deserialize it and then eval()
the object so as to active all the values.
-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]=20
Sent: 26 June 2007 02:28 PM
To: 'php windows' (php-windows@lists.php.net)
Subject: [PHP-WIN] Save classes to db?
Hi there!
=20
Is it possible to save classes (objects) into a database in PHP? What
fieldtype should be used then (MySQL) ?
=20
Best regards
/Gustav Wiberg
=20
This e-mail may contain confidential information belonging to the sender wh=
ich is legally privileged. It is the responsibility of the recipient to ens=
ure that any e-mails or attachments are virus free as Jacklin Enterprises =
accepts no responsibility. Should you not be the intended recipient then an=
y disclosure, copying, distribution or the taking of any action in reliance=
of the contents of this email is strictly prohibited. If you have received=
this transmission in error, please notify the sender immediately.
Jacklin Enterprises Limited is registered in England No. 4398837=20
Registered office: 18 Bentinck Street, London, W1U 2AR. VAT Registration No=
: 831 0256 68
This email has been scanned by the MessageLabs Email Security System.
|