Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $valores = range(1,5);
  2. $date = '2016-02-06';
  3.  
  4. for ( $i = 0, $total = count($valores); $i < $total; $i++){
  5.  
  6.  
  7. $sql = 'INSERT INTO `lancamentos`(equip,plan,real,data) values(?,?,?,?)';
  8. $q = $pdo->prepare($sql);
  9.  
  10. $q->execute(array($e1,$p1,$r1,$data));
  11.  
  12. $data = date('Y-m-d', strtotime("+1 day" strtotime($data)));
  13.  
  14.  
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement