1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| $resultat3 = $bdd -> prepare('SELECT * FROM compte,information WHERE `information`.id_client = `compte`.id_client AND courriel = "'.mysql_real_escape_string($_POST['courriel1']). '" AND password = "'.md5(mysql_real_escape_string($_POST['password1'])). '" ORDER BY date_annonce DESC');
$resultat3 -> execute (array(mysql_real_escape_string($_POST['courriel1']),mysql_real_escape_string($_POST['password1'])));
while ($donnees = $resultat3 -> fetch()){
echo '
<div class="donnees">
<div class="recherche">';
if ($donnees['recherche'] == 1)
echo 'Entraineur à la recherche d\'un club';
else
echo 'Club à la recherche d\'un entraineur';
echo'
<div class="replie" style="display: block;">
<span onclick="document.getElementById(\'deplie\').style.display = \'block\';
document.getElementById(\'replie\').style.display = \'none\';">
Ouvrir
</span>
</div>
<div class="deplie" style="display: none;">
<span onclick="document.getElementById(\'replie\').style.display = \'block\';document.getElementById(\'deplie\').style.display = \'none\';">
Fermer
</span>
<br>';
if ($donnees['recherche'] == 1)
echo 'Entraineur à la recherche d\'un club';
else
echo 'Club à la recherche d\'un entraineur';
</div> |
Partager