I have tried repeatedly and suffered a constraint. In this case I want to create an event trigger (insert) for the start date and end date. So from the start date inputted, the second date will be inputted, till the last date. In your opinion what is the most effective way to solve it?
start date: 2013-12-01 will be added 365 days,
The second date : 2013-12-02,
.
.
.
.,
Date of last : 2014-01-01
$sql = 'INSERT into cek_tgl (`tanggal`) VALUES ('.$date.')';
for($i=1;$i<365;$i++)
$sql .= ',('.$date.')';
$connection = Yii::app() -> db;
$command = $connection -> createCommand($sql);
$command -> execute();
thanks for the help