title: PHP display pop-up success message box using Codeigniter
body: <p>I am try to display a pop-up success message box after a record is updated. Here is the codes I wrote in controller</p>
  
  <pre><code>           $status = $this-&gt;order_model-&gt;set_bookingByOrderID($id,$data);
  
             if($status ==1)
             {
              echo '&lt;script&gt;alert("You Have Successfully updated this Record!");&lt;/script&gt;';
              redirect('orderManagement/index');
             }
             else{
              $this-&gt;session-&gt;set_flashdata("message","Record Not Updated!");
              redirect('orderManagement/index');
             }
  </code></pre>
  
  <p>but the script does not work. Can anyone help me to solve this?</p>