Re: DataObjects and SQL functions

From: Date: Thu, 04 Dec 2003 13:46:25 +0000
Subject: Re: DataObjects and SQL functions
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9297@lists.php.net to get a copy of this message
Michael wrote:
Hi, I want to use the ->insert function of the DataObjects class, but one of the fields in my object is an password field, which has to be converted with the password() function of mysql. Is that possible with DataObjects ?? Yes you can add a method to your class:
function setMyPasswordField($string) { $this->myPasswordField = md5($string); } or something similar. If you want to use the mysql function it a little more complicated I think but not impossible I think HTH jeroen

« previous php.pear.general (#9297) next »