==== Čtení dat z databáze ====
// Collects data from "friends" table
$data = mysql_query("SELECT * FROM friends")
or die(mysql_error());
// puts the "friends" info into the $info array
$info = mysql_fetch_array( $data );
// Print out the contents of the entry
Print "Name: ".$info['name'] . " ";
Print "Pet: ".$info['pet'] . "
";