Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. foreach($banco->listar() as $row):
  2. $pagseguro->addItem($row['id'], utf8_encode($row['titulo']), 1, (float)$value, 1);
  3. $banco->insert('mj_compras', array("idvenda" => $senha, "id_user" => $dadosUsuario['id'], "valor" => (float)$value, "form_pag" => "pagseguro", "status" => 0, "criado" => date('Y-m-d H:i:s'), "modificado" => date('Y-m-d H:i:s')));
  4. $_SESSION['lastId'] = BD::conn()->lastInsertId();
  5.  
  6. endforeach;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement