title: Toggle Bootstrap modal with php trigger
body: <p>I need to trigger a Bootstrap modal if a PHP GET url is set but I don't know how to.</p>
  
  <p>The PHP code look's like this:</p>
  
  <pre><code>&lt;?php
  if ($_GET['activate']) {
  $activate = $_GET['activate'];
      mysql_query("UPDATE `users` SET `active` = 1 WHERE `email_code` = '$activate'");
  }
  ?&gt;
  </code></pre>
  
  <p>After the mysql query but still in the if I need the modal to trigger. I've considered json but don't know enough to create my own code. The javascript to show the modal is this line:</p>
  
  <pre><code>$('#myModal').modal('show')
  </code></pre>
  
  <p>How would I translate that to work with my PHP trigger?</p>