Undefined variable: idletime
<p>here is my code....</p>

<pre><code>class line{
    function db($host, $user, $pass, $db){
        mysql_connect($host, $user, $pass) or die("Could Not Connect to Database or Database Does not Exists....");
        mysql_select_db($db) or die("Database Does not Exists....");
    }

    $idletime = 300;
    $deltime = 600;

     function test(){
    echo $idletime;
    echo idletime;
}

}
</code></pre>

<p>and calling this class as</p>

<pre><code>$w = new line();
$w-&gt;test();
</code></pre>

<p>but it says</p>

<p>Undefined variable: idletime in <strong>*</strong></p>

<p>please let me know what acutally the problem is...</p>
