Location: PHPKode > scripts > Textbased Moviedatabase > textbased-moviedatabase/movies.php
<html><head><title>movies</title></head>


<style type="text/css">
<!--
body {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt}
pre {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: bold}
table {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #FFFFFF}
-->
</style>
<body bgcolor="#000033" text="#FFFFFF">

<?php
	$datei = "movies.txt";
	$zeile = file($datei);
	$entries = sizeof ($zeile);
	$i=0;
	sort($zeile);
	reset($zeile);
	while(list($key,$val)=each($zeile)) {
	}

print "<table>";
print "<tr><td width='55%'><pre>Film</pre></td>";
print "<td width='7%'><pre>Sprache</pre></td>";
print "<td width='5%'><pre>CDs</pre></td>";
print "<td width='7%'><pre>Source</pre></td>";
print "<td width='6%'><pre>Size</pre></td>";
print "<td width='9%'><pre>Res</pre></td>";
print "<td width='7%'><pre>Genre</pre></td>";
print "<td width='6%'><pre>Jahr</pre></td>";
	
	while ($i < $entries) {
	$spalte = explode ("|", $zeile[$i]);
	$name = $spalte[0];
	$sprache = $spalte[1];
	$cds = $spalte[2];
	$quelle = $spalte[3];
	$mb = $spalte[4];
	$res = $spalte[5];
	$genre = $spalte[6];
	$release = $spalte[7];
		print "<tr><td width='50%'>";
		echo $name;
		print "</td>";
		print "<td width='7%'>";
		echo $sprache;
		print "</td>";
		print "<td width='5%'>";
		echo $cds;
		print "</td>";
		print "<td width='7%'>";
		echo $quelle;
		print "</td>";
		print "<td width='6%'>";
		echo $mb;
		print "</td>";
		print "<td width='9%'>";
		echo $res;
		print "</td>";
		print "<td width='10%'>";
		echo $genre;
		print "</td>";
		print "<td width='6%'>";
		echo $release;
		print "</td>";
	$i=$i + 1;	
	}
print "</table>";
?>
</body></html>
Return current item: Textbased Moviedatabase