enter date sequence in the bank

0

When you insert the date into it, it adds + 1 day and inserts again.

Any ideas?

$valores = range(1,5);
$date = '2016-02-06';                            

            for ( $i = 0, $total = count($valores); $i < $total;  $i++){


            $sql = 'INSERT INTO 'lancamentos'(equip,plan,real,data) values(?,?,?,?)';
            $q = $pdo->prepare($sql);

            $q->execute(array($e1,$p1,$r1,$data));            

           $data = date('Y-m-d', strtotime("+1 day" strtotime($data)));



                }
    
asked by anonymous 06.02.2016 / 19:29

0 answers