Saturday, November 29, 2008

Re: REgarding using Mysql functions like NOW(), CURDATE() etc

"On Nov 29, 9:42 pm, the_woodsman <elwood.ca...@gmail.com> wrote:
> I don't think Federico has answered your general question about using
> MySQL functions,"

Yes correct.

and I would very much like to believe, that cakephp already has some
method(s) to harness the power of the multitude of Mysql functions
present here

http://dev.mysql.com/doc/refman/5.0/en/functions.html

So regarding using Mysql functions in Cakephp. has it been documented
somewhere ?

I tried

$this->data['User']['signedup'] = 'CURDATE()';

$this->User->save($this->data)


and

$this->data['User']['signedup'] = '!-CURDATE
()';
$this->User->save($this->data)


But it did not work !

Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: