title: MySQL event using PHP script
body: <p>I am trying to execute MySQL event using a PHP script. I just try to insert two fields of data in to a table when I execute the PHP script with the event call "joy" in the database but there are no data inserted in the table when I call the event.</p>
  
  <p>My PHP script is: </p>
  
  <pre><code>&lt;?php
  include("connect.php");
  
  $insertquery="CREATE EVENT joy
      ON SCHEDULE  AT CURRENT_TIMESTAMP + INTERVAL 3 MINUTE
      DO
        BEGIN
          insert into tri (name,email) values ('swapan','swapan@mail.com');
  
        END";
  
   mysql_query($insertquery) or die (mysql_error());
  ?&gt;
  </code></pre>