Código PHP:
Ver original
<?php include('conect.php'); function datadump ($table) { $result .= "# Tabla ".$table." \n"; $result .= "INSERT INTO ".$table." VALUES("; for($j=0; $j<$num_fields; $j++) { if ($j<($num_fields-1)) $result .= ","; } $result .= ");\n"; } return $result . "\n\n\n"; } for($i=0;$i<$tot_tablas;$i++){ $content.=datadump($nombre_tabla); } echo $content; ?>