codeigniter

    0熱度

    1回答

    我正在嘗試爲我正在構建的fantansy足球網站創建替代。我有一個觀點,顯示11個首發球員和4個替補席。這裏是我的fantansyteam表。 teamID | fantasyteam | userID | GK1 | GK2 | DEF1 | DEF2 | MID1 | MID2 | FWD1 | FWD2 95 Washindi FC 1 13 2 3 6 7 12 1

    -5熱度

    2回答

    奧凱傢伙使用AJAX,我使用AJAX來驗證用戶名的availiblity有一定的問題,這是我笨代碼: VIEW 一個。表格 <input type="text" class="form-control" placeholder="New Username" name="userId" id="userId" value="" onblur="return check_username();">

    0熱度

    1回答

    所以在這篇文章中How do you set a CodeIgniter radio button, before it's in the $_POST? TwiStar解釋瞭如何修改$ _POST變量,這很好...除了它好像覆蓋了CodeIgniter表單驗證函數。 if ($this->form_validation->run() === FALSE) {...} 這可能是由於我的設計..

    0熱度

    2回答

    我有一個查詢來搜索內容表中找到一些關鍵字行。(笨) 我有一個列來存儲關鍵字(省名)。 我有一個主要省份和相關省份,我應該搜索它們。 我有一個關鍵字數組,並不清楚它有多少個索引。 所以,我怎麼可以搜索包含多個關鍵字 的內容,這是我的模型查詢 public function province($province_name,$provinces_name,$language) { $ps_n

    1熱度

    1回答

    我正在使用此代碼通過本地主機發送電子郵件。 function send_email(){ date_default_timezone_set('Asia/Manila'); $ci =& get_instance(); $ci->load->library('email'); $config['protocol'] = "mail";

    0熱度

    3回答

    當人輸入輸入表單時,我希望它將POST數據發送到PHP服務器,並檢查他們的用戶名是否已被佔用。 輸入有username_signup的名稱,但由於某些原因,瀏覽器[無論是在Chrome和Firefox]正在發送的username輸入名稱(我沒有使用username起初,當我的編碼,但我把它切換到username_signup並保存一切)。這真的很煩人,因爲我不知道是什麼導致它發送POST輸入名稱u

    1熱度

    2回答

    我想在Codeignter中爲從數據庫中獲取的結果集編寫CSV。 我已經在使用這裏提到的解決方案。 Reports in Codeigniter 但問題是它會寫入整個表格。現在我想要獲取和寫入特定的記錄。所以這是我的模型代碼。 $where = "hangtag_spoc_number = 2202"; $result = $this->db->select('*') ->

    0熱度

    1回答

    我的模型: public function category($cat) { $this->db->select('c.id, c.cat2, c.category, m.id, m.date, m.when_date, m.when_time, m.where_m'); $this->db->from('category c'); $this->db->where

    -1熱度

    1回答

    我有3個查詢 $this->db->select('count(id) as Lead_Current_Month')->from('admin_lead_distribution'); $result1=$this->db->get()->result(); $this->db->select('count(id) as Lead_Current_Month')->from('level1

    0熱度

    1回答

    我想在我的CodeIgniter中使用PDO MySQL驅動程序(2.2。 0)應用程序,但我不知道爲什麼我有這個錯誤。 這是我的數據庫配置: $active_group = 'default'; $active_record = TRUE; $db['default']['hostname'] = 'mysql:host=localhost'; $db['default']['usern