'' AND client <> 'WHEELCOM' AND online = 1 ORDER BY client"; $resclient=mysql_query($reqclient,$connexion) or die("Invalid request " . $reqclient); //$tab_client = Array(); $i = 1; while ($tabclient = mysql_fetch_row($resclient)){ $tab_client[$i] = $tabclient; $i++; } //print_r($tab_client); if (isset($_GET['client']) && is_numeric($_GET['client']) && $_GET['client'] > 0 && strlen($_GET['client']) < 3) { //echo 'hello world'; $numClient = $_GET['client']; //**********construction du contenu des actualites***********// $sql = "SELECT * FROM actualites a, images i WHERE a.client = '".$tab_client[$numClient][0]."' AND online = 1 AND a.id_actu = i.id_actu ORDER by date DESC"; //print_r($sql); $res=mysql_query($sql,$connexion) or die("Invalid request " . $sql); while ($data = mysql_fetch_assoc($res)) { //$titreClient = $data['client']; $contenu .= '
'.substr(($data[date]),-2,2).' '.$data['mois'].' '.$data['annee'].'
> '.stripslashes($data['titre']).'
'.stripslashes($data['chapeau']).'

'; if ($data['img1'] != "" || $data['img1'] != NULL) { $contenu .= '

'.stripslashes($data['leg1']).'
'; } $contenu .= stripslashes($data['texte']).'



'; if ($data['img2'] != "" || $data['img2'] != NULL) { $contenu .= '
'.stripslashes($data['leg2']).'


'; } $contenu .= '

'; } } ?> Wheelcom - Clients
Clients
nos références, nos rencontres...
'.$tab_client[$numClient][0].'

'.$contenu; }else{ echo ''.$row[0]; } ?>
Fiches
'; while ($liste = mysql_fetch_assoc($resmenu)) { echo "".$liste['nom']."
"; } $j = 1; echo '

Actualités
'; foreach ($tab_client as $key => $value) { echo ''.$value[0]."
"; $j++; } echo '

'; ?>