why showing Fatal Error on static function
<p>I have a tiny class of inserting payment record into database. below is given:</p>

<pre><code>&lt;?php

class pay{
        public static function pay($user, $income, $type, $refid='--'){
        mysql_query("INSERT INTO earn VALUES (NULL, '$user', '$income', '$refid', '$type', ".time().")");   
        }
    }

?&gt;
</code></pre>

<p>But browser gives the below fatal error..</p>

<blockquote>
  <p>Fatal error: Constructor pay::pay() cannot be static in F:\xampp\htdocs\new\sts\class.php on line 41</p>
</blockquote>

<p>I am confused that why the error occurring.. please help me to understand.</p>
