Write Php Script Using User Defined Function In Mysql