title: phpmyadmin: create a function
body: <p>i'm trying to create a function in my phpmyadmin - doesnt work .. :/
  here's my syntax:</p>
  
  <pre><code>DELIMITER $$
  
  CREATE FUNCTION fixString(input varchar) RETURNS varchar
  BEGIN
    declare output varchar;
    SET output = REPLACE(input,'ö','oe');
    RETURN output;
  END $$
  
  DELIMITER ;
  </code></pre>
  
  <p>error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') RETURNS varchar BEGIN declare output varchar; SET output = ' at line 1</p>
  
  <p>any ideas what's wrong?
  thanks</p>