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.
My PHP script is:
<?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','[email protected]');
END";
mysql_query($insertquery) or die (mysql_error());
?>