echo $text; ?>
echo $readthestory; ?>
function randomRow($table)
{
global $conn;
global $lang;
// select a random row of all the eligible rows in the given table
// a row is eligible if is has a thumbnail graphic
$thumbfield = substr($table, 0, -1) . "_thumb";
$langfield = substr($table, 0, -1) . "_lang";
$query = "SELECT * from $table where $thumbfield != '' and $langfield = '$lang'";
$result = pg_exec($conn, $query);
$count = pg_num_rows($result);
if ($count == 0) {
return FALSE;
}
else {
$rand = rand(0, $count -1);
return pg_fetch_row($result, $rand);
}
}
// this needs to be changed / removed as of Feb 15th, 2010
// Feb 15 2010 - the change has been made. gburnham
if (FALSE) {
if ($lang == "en") {
$id = "6";
$image = "images/profiles/home/Hall_stamp_Home.png";
$text = "In 1859, Nova Scotian William Hall became the first Black Canadian to receive the Victoria Cross.";
}
else {
$id = "26";
$image = "images/profiles/home/Hall_stamp_Home.png";
$text = "En 1859, William Hall, néo-écossais, est le premier Noir à recevoir la Croix de Victoria.";
}
}
else {
$row = randomRow("profiles");
if ($row !== FALSE){
$id = $row[0];
$image = $row[4];
$text = $row[5];
}
}
?>
$row = randomRow("arts");
if ($row !== FALSE){
$id = $row[0];
$image = $row[4];
$text = $row[5];
}
?>
echo $text; ?>
echo $readthestory; ?>
if ($lang == "en") { ?>
Download the complete print version of the Education Guide (pdf file).
} else { ?>
Técharger la version impriméintéale du guide pégogique (fichier pdf).
} ?>


Winner of the Black Web Award for Best Black Canadian Site, 2008
} else { ?>Lauréat du prix Black Web pour le meilleur site canadien noir, 2008
} ?>