Experts

Expert:


 

[insert_php]
// page EXPERTS
global $chemin;
global $wpdb;
global $table_experts;

$lettres = array(« A », « B », « C », »D », « E », « F », »G », « H », « I », »J », « K », « L », »M », « N », « O », »P », « Q », « R », »S », « T », « U », »V », « W », « X », »Y », « Z »);
foreach ($lettres as $lettre) {
echo ‘‘ . $lettre . ‘‘; echo ‘ ‘;
}

echo ‘‘;
echo  »;

foreach ($lettres as $lettre) {
$experts = $wpdb->get_results(« SELECT * FROM $table_experts WHERE nom LIKE ‘ » . $lettre . « %’ ORDER BY Nom, Prenom »);

$numrows = count($experts);
//echo $numrows .  »;
//print_r($MCs);
echo ‘

‘ . $lettre . ‘

‘;
if ($numrows > 0) {
echo ‘

‘;
foreach ($experts as $expert) { echo  »; echo  »;
//echo  » . $expert->Prenom .  »;
//echo  » . ‘ ‘ .  »;

echo ‘