Posted by NC on 01/11/06 20:40
Gav wrote:
>
> If you had a class user with variables id, name, password. How
> would you save this object or its variable date to a MySQL
> database?
By using serialize($your_object) and writing the result into a TEXT or
VARCHAR field.
> Are there any tutorials that you can recommend on this subject?
The Manual is always a good place to start:
http://www.php.net/serialize
Cheers,
NC
[Back to original message]
|