2017-09-05 60 views
0

您好我有一個網站開發的蛋糕的PHP 1.3.14。所以在這是在服務器上,它工作正常。蛋糕php 1.3.14突然停止保存數據,而它之前工作

但我已經遷移了服務器,並在那裏設置了所有代碼,現在數據不保存在mysql中。

//Data 

Array 
(
    [ListOfTeacher] => Array 
    (
     [first_name] => Sunil 
     [last_name] => Rawat 
     [dob] => Array 
      (
       [month] => 09 
       [day] => 05 
       [year] => 2007 
      ) 

     [empid] => e001 
     [list_of_house_id] => 1 
     [list_of_class_id] => 1 
     [username] => sunilrawat 
     [password] => [email protected] 
     [qualification] => mca 
     [is_admin] => 0 
     [uniqueid] => retret 
    ) 

) 

if ($this->ListOfTeacher->save($this->data)) { 
      $this->Session->setFlash(__('The list of teachers has been saved', true)); 
      $this->redirect(array('action' => 'index')); 
     } 
     else { 
       $this->Session->setFlash(__('Record could not be saved. Please follow the instructions.', true)); 
     } 

現在它去其他條件的一切。

任何人都可以請協助什麼可能是問題。

在此先感謝

回答

0

我建議打開MySQL日誌記錄以幫助調試問題。首先運行set global general_log = "ON";,然後運行show variables,並找到general_log_file設置。複製該路徑,在控制檯上對其執行tail -f,然後再次嘗試保存。它應該讓你知道在MySQL方面是否有任何問題。祝你好運。