I am using codeigniter to create some cronjobs I scheduled it using Task schedular in windows 7. It runs every one minute but what i see is it just popup my code in an editor and does not insert any data in my database that I mentioned in index function.
<?php
class Hello extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->database();
}
public function index() {
$this->db->query("INSERT INTO test_cron VALUES(null, username )");
}
}
?>
我怎样才能真正执行《公约》 在我的数据库中插入数据
成就