⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Message Sucess is null



ELJUSTICEIRO
  • profile picture
  • Member

Posted 28 August 2013 - 20:45 PM

Update, delete, everything works, but the message insertion is giving the following error:

 

 

{"success":true,"insert_primary_key":true,"success_message":null,"success_list_url":"http:\/\/localhost\/portalcandidato\/index.php\/historico\/index\/success\/1"}

 

"success_message"

  ???

 

 

 

 


ELJUSTICEIRO
  • profile picture
  • Member

Posted 28 August 2013 - 21:03 PM

                        $insert_result = utf8_encode($insert_result);
                        $success_message = utf8_encode($success_message);

            echo "<textarea>".json_encode(array(
                    'success' => true ,
                    'insert_primary_key' => $insert_result,
                    'success_message' => $success_message,
                    'success_list_url'    => $this->getListSuccessUrl($insert_result)
            ))."</textarea>";
 


mnish
  • profile picture
  • Member

Posted 01 September 2013 - 17:22 PM

                        $insert_result = utf8_encode($insert_result);
                        $success_message = utf8_encode($success_message);

            echo "<textarea>".json_encode(array(
                    'success' => true ,
                    'insert_primary_key' => $insert_result,
                    'success_message' => $success_message,
                    'success_list_url'    => $this->getListSuccessUrl($insert_result)
            ))."</textarea>";
 

 

can yoy show your complete function.? Actually your problem create some confussion.