skip to main
|
skip to sidebar
insyte's insights
Sunday, November 25, 2012
xataface calculate age
function beforeSave(&$record){
$age=intval(substr(date('Ymd') - date('Ymd', strtotime($record->strval('Birthday'))), 0, -4));
$record->setValue('Age',$age);
}
Love the simplicity
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2012
(15)
▼
November
(7)
xataface calculate age
Ckeditor single space
xataface ckeditor worked when g2 invoked last
xataface htmlreports permissions
xataface, hide role in registration, prevent editi...
xataface fix for users being able to edit their roles
using special characters like ñ in linux mint
►
October
(8)
►
2008
(32)
►
July
(2)
►
April
(7)
►
March
(11)
►
February
(12)
About Me
insyte
insyte is an anesthesiologist, husband and proud father :) also a database hobbyist and tv/comics addict :)
View my complete profile
No comments:
Post a Comment