Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nome = "inventario.txt";
- $arquivo = fopen("$nome","c");
- $breakline = (PATH_SEPARATOR == ";" ? "\r\n" : "\n");
- $sql = mysql_query("SELECT * FROM tb_produtos_coletados where id_inventario = '$_GET[id_inventario]'");
- while ($campo = mysql_fetch_array($sql)) {
- $gravar = "$campo[codigo_de_barras];$campo[quantidade]".$breakline;
- fwrite($arquivo, $gravar);
- }
- fclose($arquivo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement