2014-11-25 142 views
-2

我試圖調試它,但我真的不知道是什麼導致了錯誤。我已經找到了丟失的括號,但我認爲沒有。所以請幫助!

<?php 

class Model_role extends CI_Model { 

    public function scalar($user_account, $role){ 

      $this->db->where('login_id', $this->input->post('idnum')); 
      $this->db->select($role);                              z 

      $query = $this->db->get($user_account); 
      $row = $query->row_array(); 
      return $row['role']; 
     } 
    } 

?> 
+0

什麼改變[**自從昨天?**](http://stackoverflow.com/q/27096002/) – 2014-11-25 01:44:42

+0

什麼都沒有。我檢查了這個文件的備份,它也是一樣的。 – 2014-11-25 01:46:30

+1

'($ role); z'字母z在那裏,塞到右邊。如果它在您的工作代碼中,請將其刪除。 – 2014-11-25 01:47:06

回答

0

它看起來像有一隻流浪z方式的$this->db->select($role);您可以在編輯器中搜索z,看看它是否出現的吧?

相關問題