admin

DVD liste

connect_error) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $sth = $dbh->prepare("SELECT count(*) from DVDsamling"); $sth->execute(); $sth->bind_result($count); $sth->fetch(); $sth->reset(); $sth = $dbh->prepare("SELECT Filmtitel FROM DVDsamling order by VideosamlingsID desc LIMIT 5"); $sth->execute(); $sth->bind_result($filmtitel); echo "
De 5 nyeste indkøbte DVD'er:\n"; while ($sth->fetch()) { printf("
%s\n", $filmtitel); } echo "
\n"; echo "

Min samling indeholder pt. " . $count . " DVD'er.

"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $sth = $dbh->prepare("SELECT * FROM DVDsamling order by Filmtitel"); $sth->execute(); $sth->bind_result($ID,$Filmtitel,$Genre,$Laengde,$Format,$Udgivelsesaar,$Regionskode,$IMDBlink); while ($sth->fetch()) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; } echo "
Filmtitel
 
Genre
 
Læde
 
Format
 
Regionskode
 
Udgivelsesår
 
". $Filmtitel . "" . $Genre . "" . $Laengde . "" . $Format . "" . $Regionskode . "" . $Udgivelsesaar . "
\n"; /* close connection */ $dbh->close(); ?>