Update index.php

+sql query fixed [datetime() replaced by curdate()]