title: JavaScript Alert not working properly
body: <p>I am showing an alert using javascript in my php page. It is not showing alert box. Kinldy guide me how to make it work fine
      
  
  <pre><code>if($sql &amp;&amp; $sql2 &amp;&amp; $sql3) 
  {
      echo "&lt;script&gt; alert('Deleted successfully!');&lt;/script&gt;";
          $myURL = 'students_list.php';
          header('Location: '.$myURL);
          exit;
      else
  {    
  echo "&lt;script&gt; alert('Temporary problem, try again!');&lt;/script&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>It is deleting data from database but not showing alert. Tell me how to make it work fine.</p>