PEOPLE !! I know !! You must write in phpmyadmin:
Code:
CREATE FUNCTION fun5() RETURNS INT
BEGIN
RETURN 5;
END
without $$ in code !! And then write below in input Separator $$
Screen:
http://yfrog.com/5r57844448j
And how can I see the result this function using php. It:
PHP Code:
$query = mysql_query("select fun()");
echo $query;
Shows me: Resource id #3 :/