PHP Class Import
<p>Here's a sample code that I'm trying to call from another page to help me with stats. I can't seem to get it to work. How do I import and call this class in another php file? <code>stats.php</code></p>

<pre><code>&lt;?php

include("config.php");
$link = mysql_connect($host, $username, $password);
mysql_select_db("mydb", $link);

class stats{

  function newReg(){

    $result = mysql_query("SELECT * FROM people where status ='registered' ", $link);
    $num_rows = mysql_num_rows($result);
     return $num_rows ;


function newApp(){
    $result = mysql_query("SELECT * FROM people where status = 'NEW' ", $link);
    $num_rows = mysql_num_rows($result);

    return $num_rows;
 }
?&gt;
</code></pre>

<p>I want to call that class here in another file:</p>

<pre><code>&lt;?php

require_once("stats.php");
   echo(stats.newReg());

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

<p>Is there something I'm missing here?</p>
