Hive Global Leaders Program September 2014

get_results( “SELECT * FROM participant WHERE class_id=’3′ ORDER BY fname ASC”, ARRAY_A );

foreach ($participants as $participant) {

//this makes sure there are not html injection issues, and it fixes all of the special characters
$html = array_map(function ($e) { return htmlentities($e, ENT_NOQUOTES, ‘UTF-8’);}, $participant);

echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo ““;
echo “
“;
echo “

{$html[‘fname’]} {$html[‘lname’]}

“;
echo “

{$html[‘organization’]}

“;
echo “

{$html[’email’]}

“;
echo “

{$html[‘bio’]}

“;
echo “

“;
}

?>