0
當我嘗試執行這一個函數時,它會返回一個錯誤,指出「Parse error:syntax error,unexpected T_PAAMAYIM_NEKUDOTAYIM on line 103」。在PHP函數中解析MongoCursor :: doQuery錯誤?
在線路103,它看起來像(這是代碼的開始部分)
function get_list($option)
{
//$db = new db();
//$db->getConnection();
$rs = $this->db->MongoCursor::doQuery($this->sql, $this->sql_params); //this is the line 103
$this->resultList = $rs;
我在做什麼錯?
你不能調用靜態方法作爲鏈的一部分。什麼是'$ this-> db-> MongoCursor'? –