<?php
include_once("class/LibHead.inc.php");
$GAsort = new ArticlesortMgr();
$sql = "SELECT sid,sname FROM articlesort sort";
$result = $GAsort->GetSort($sql);
while($showsort = $GAsort -> fetch_array($result))
{
echo ($showsort['sid'].$showsort['sname']."<br>");
}?>
这是调用函数
include_once("class/LibHead.inc.php");
$GAsort = new ArticlesortMgr();
$sql = "SELECT sid,sname FROM articlesort sort";
$result = $GAsort->GetSort($sql);
while($showsort = $GAsort -> fetch_array($result))
{
echo ($showsort['sid'].$showsort['sname']."<br>");
}?>
这是调用函数
你可以试试看
大侠告知php类可以写两个构造函数吗?
{
$oImfly = new Imfly();
$this->_oDB = $oImfly->DB;
$this->_oArticlesort = $oArticlesort;
}
谢谢谢谢谢谢