title: How to create custom popup based on success insert or failure mySQL?
body: <p>I would like to have a customer popup window appear on a page after the insert to mySQL is completed.</p>
  
  <p>I have the "header" going to a particular page, but I would also like to have a custom popup window appear after the page loads.</p>
  
  <p>Here is my current php script.  Everything works, but I need to add a popup window based on a success or failure.</p>
  
  <pre><code>    &lt;?
  .........
  
      if ($result) {
      header("location: inv_fc.php");  //NEED TO ADD A CUSTOM POPUP FOR SUCCESS
      }
      else {
      header("location: inv_fc.php");  //NEED TO ADD A CUSTOM POPUP FOR FAILURE
  
      }
      ?&gt;
  </code></pre>