在此,我试图从另一个网页上打一个样本代码,帮助我获得雕像。 我看不出工作。 我如何进口这一类产品,并将这一类别列入另一个存放地点档案? <代码>stats.php
<?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;
}
?>
我想在另一个档案中把这一类人称为:
<?php
require_once("stats.php");
echo(stats.newReg());
?>
Is there something I m missing here?