hi,
ich hoffe ihr könnt mir schnell helfen. muss das heute noch schaffen. und zwar soll ich in eine php datei eine excel datei einbauen. (.csv) Ich habe es mit include gemacht. aber die formatierung ist schlech. wie kann ich die ändern?
LINK: http://incendium.bplaced.com/test/test.php
CODE:
//EDIT:
habs schon gelöst:
PHP
<?php
$filename = "mydvd.csv"; //here's the filename
$id = fopen($filename, "r"); //open the file
while ($data = fgetcsv($id, filesize($filename),";")) //start a loop
$table[] = $data; //put each line into its own entry in the $table array
fclose($id); //close file
echo "<table>\n";
foreach($table as $row)
{
echo "<tr>";
foreach($row as $data)
echo "<td>$data</td>";
echo "</tr>\n";
}
echo "</table>\n";
?>
Alles anzeigen