In Ci, I\'ve got the following function. How do I test that the query successfully inserted without error\'s?
public function postToWall() {
$entryData =
if you are using bootstrap on codeigniter try flash message or simply redirect
$added = $this->your_modal->function_reference($data);
if ($added) {
$this->session->set_flashdata('success', 'Added successfully.');
redirect('home');
} else {
$this->session->set_flashdata('error', 'Something wrong.');
redirect('home');
ON CONTROLLER