Warning: Missing argument 1 你在哪一頁include這個類?應該是你創建物件時,呼叫建構子沒有輸入參數做成的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?phpinclude_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>");}?> function ArticlesortMgr($oArticlesort){ 报这里错误???$oImfly = new Imfly();$this->_oDB = $oImfly->DB;$this->_oArticlesort = $oArticlesort;}你的构造函数是有形参的。。你实例化的时候没有给参数。可以设置默认值~~~ function ArticlesortMgr($oArticlesort = 默认值){ $oImfly = new Imfly();$this->_oDB = $oImfly->DB;$this->_oArticlesort = $oArticlesort;} 关于 fckeditor 的 window.parent 问题 帮忙看下 谢谢 如何在一个HTM文件里调用PHP文件 关于javascript显示文件内容的问题 PHP 发邮件 求教格式化日期的问题 js 左右键的问题 很感谢 菜鸟问题:修改问题。 高分求完整的自助建站全站系统 用 setcookie() 函数怎样设置永久保存的COOKIE 谢谢高手指点。 如何在PHP中检测下拉框中改变选择的条目? smarty 循环 谁知道“·”在unicode/gb2312的对照表中值?
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>");
}?>
$oImfly = new Imfly();
$this->_oDB = $oImfly->DB;
$this->_oArticlesort = $oArticlesort;
}
你的构造函数是有形参的。。
你实例化的时候没有给参数。
可以设置默认值~~~
$oImfly = new Imfly();
$this->_oDB = $oImfly->DB;
$this->_oArticlesort = $oArticlesort;
}