
12/04/2005, 23:02
|
 | | | Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 21 años, 7 meses Puntos: 21 | |
crear txt al barrer la tabla hola amigos quiero sabes como puedo crear un txt
al momento de visualizar un listado de una tabla
lo estoy haciendo asi
$archivo="lista.txt";
$fp = fopen($archivo,"w+");
while ($row = mysql_fetch_row($result))
{
echo "<tr >";
echo "<td><div align='left'>";
echo $row[0];
echo "</div></td>";
echo "<td><div align='left'>";
echo $row[1].' '.$row[2] ;
echo "</div></td>";
echo "<td><div align='center'>";
echo $row[8];
echo "</div></td>";
echo "<td><div align='center'>";
echo $row[9];
echo "</div></td>";
echo "<td width='74'><div align='center'>";
echo "</div></td>";
echo "</tr>";
fwrite($fp,$row[1 );
}
fclose($fp);
pero quiero que el archivo txt aparesca asi por ejemplo
"1","nombre","apellidos",....
"2","nombre","apellidos",....
.
.
.
y como podria descargar ese archivo???
__________________ gerardo |