Créer un compte
Connexion

Probleme d'affichage

Pour créer et répondre aux sujets, vous devez être connecté.
Ce sujet est résolu.
Pages: 1
Auteur Message
coco
27/01/2011 à 18:53:45
coco
Membre
Bonjour,
je me trouve dans une impasse car j'essaye d'afficher les derniers nom de message sur la page profil du membre
Code source :
<?php
include('config.php');
 
/******************************************************
----------------Configuration Utilisateurs-------------
******************************************************/
$dn = mysql_query('select id, username, email, avatar, signup_date, skin, signature, rang, lastlogin from users where username="'.htmlentities(trim($_SESSION['username'])).'"');
$dnn = mysql_fetch_array($dn);
$rang = $dnn['rang'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Page g&eacute;n&eacute;r&eacute;e - L'indentation peut être g&eacute;nante. -->
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>.: Movies Of Artistes - Profil d'un membre :.</title>
        <link rel="stylesheet" type="text/css" href="http://movies-of-artistes.geekheberg.net/design.css" />
               <script>
function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
} else {
targetElement.style.display = "none" ;
}
}
</script>
</head>
<body>
<div id="header">
                      <embed width="777" height="149" type="application/x-shockwave-flash" wmode="transparent"
        pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://flashhelpbbl.free.fr/outils/swf/moa/header.swf"></embed >
        <?php
//Si lutilisateur est connecte, on lui donne un lien pour modifier ses informations, pour voir ses messages et un pour se deconnecter
 
//On compte le nombre de nouveaux messages que lutilisateur a
$nb_new_pm = mysql_fetch_array(mysql_query('select count(*) as nb_new_pm from pm where ((user1="'.$_SESSION['userid'].'" and user1read="no") or (user2="'.$_SESSION['userid'].'" and user2read="no")) and id2="1"'));
//Le nombre de nouveaux messages est stoque dans la variable $nb_new_pm
$nb_new_pm = $nb_new_pm['nb_new_pm'];
//On affiche les liens
?>
        </div>
<br /><div id="menu-gauche">                                    
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Principal</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="http://movies-of-artistes.geekheberg.net/" title="Un petit clic et vous voil&agrave; sur l'accueil du site.">Accueil</a></li>
                                        <li><a href="infos.php" title="Tout savoir sur le site.">Infos</a></li>
                                        <li><a href="film.php" title="Envie de voir un film ?">Film</a></li>
                                        <li><a href="contact.php" title="Pour contacter le site.">Contact</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Espace Membres</span>
                        </div>
                        <div class="bordure-milieu">
                        <ul>
                        <?php
        if(!isset($_SESSION['username']))
        {
        ?>
                               
                                        <li><a href="connexion.php" title="Connecte toi.">Connexion</a></li>
                                        <li><a href="inscription.php" title="Rejoind-Nous !">Inscription</a></li>
                                        <?php
                }else {
                ?>
                                        <li><center><a href="membres.php?id=<?php echo $dnn['id']; ?>" title="Ton profil."><?php echo htmlentities($dnn['username']); ?></a></center></li>
                        <li><a href="mon_compte.php" title="Modifier ton compte.">Mon Compte</a></li>
                        <li><a href="list_pm.php" title="Boite de r&eacute;ception.">Mes MPs</a> (<?php echo $nb_new_pm; ?>)</li>
                        <?php
                }
                ?>
                               
<?php
if ($rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href="mod/"> Mod&eacute;ration</a></li>';
}
if ($rang == 4)
{
echo '<li><a href="Admin/"> Administration</a></li>';
}
if ($rang == 1 OR $rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href="connexion.php">D&eacute;connexion</a></li>';
}
?>
                                </ul>
                                                </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Site</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="concept.php" title="Pour conna&icirc;tre le concept du site.">Concept</a></li>
                                        <li><a href="user.php" title="Liste de tous les membres">Membres</a></li>
                                        <li><a href="team.php" title="D&eacute;couvre la team du site.">Best Team</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                </div>
                <a href="http://www.blablaland.com/site/fansites.php?vote=29" alt="Voter pour Movies Of Artistes"><img src="http://movies-of-artistes.geekheberg.net/images/menu/sepabas.png" style="margin-left:13px;" alt="S&eacute;paration" border="0"/></a>
        </div>  <div id="milieu"><div class="haut"></div>
        <div class="milieu"><?php
mysql_query('insert into cpt_connectes (pseudo, timestamp) values ("'.$_SESSION['username'].'", "'.time().'")');
?>
<?php
//On verifie que lidentifiant de lutilisateur est defini
if(isset($_GET['id']))
{
        $id = intval($_GET['id']);
        //On verifie que lutilisateur existe
        $dn = mysql_query('select username, email, avatar, signature, signup_date, rang, skin, lastlogin from users where id="'.$id.'"');
        if(mysql_num_rows($dn)>0)
        {
                $dnn = mysql_fetch_array($dn);
                                $username = $dnn['username'];
               
                //On affiche les donnees de lutilisateur
$filme = mysql_fetch_array(mysql_query('select count(*) as auteur from film where auteur="'.$username.'"'));
$nfilme = $filme['auteur'];//Ok je comprend :p è_é ça a fonctionner .. mais ça va pls ..je pense que je viens de
?>
 
<table style="width:500px;">
        <tr>
        <td><br /><?php
if($dnn['avatar']!='')
{
        echo '<div style="width:90px;height:90px;backgroung-repeat:no-repeat;background-image:url('.$dnn['avatar'].')">
       <embed width="90" height="90" align="left" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'.$dnn['skin'].'"></embed>        
        </div>';
}
else
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/defaut.png" width="90" height="90"><br>';
}

$cnn = mysql_fetch_array(mysql_query('select count(*) as nb from cpt_connectes where pseudo="'.mysql_real_escape_string($dnn['username']).'"'));
if($cnn['nb']>0)
{
        echo '<font color="green"><b>&nbsp; &nbsp; connect&eacute;</b></font><br>';
}
else
{
        echo '<font color="red"><b>&nbsp; d&eacute;connect&eacute;</b></font><br>';
}
?>
<?php if ($dnn['rang'] == '1')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/membre.png" width="90">';
        }
else if ($dnn['rang'] == '2')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/modo.png" width="90">';
        }
else if ($dnn['rang'] == '3')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/team.png" width="90">';
        }
else if ($dnn['rang'] == '4')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/admin.png" width="90">';
        }
echo "<!-- ".$dnn['rang']." --><br/>";
?><br></td>
        <td class="left"><fieldset style="width:300px;"><legend><b>Infos</b></legend>
        Pseudo : <b><?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?></b><br />
        Email : Masqu&eacute; par l'Admin.<br />
        Arriv&eacute; sur M.O.A le : <b><?php echo date('d/m/Y',$dnn['signup_date']); ?></b><br />
        Derni&egrave;re connexion le <b><?php if ($dnn['lastlogin'] == '0'){ echo 'Cet utilisateur ne c\'est jamais connect&eacute;(e).'; } else { echo date('d/m/Y',$dnn['lastlogin']);} ?></b><br />
                <?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?> &agrave; post&eacute; <b><?php echo $nfilme; ?><b> Filme(s)<br>
                <?php
//On affiche un lien pour envoyer un mp a lutilisateur
if(isset($_SESSION['username']))
{
?><a href="new_pm.php?recip=<?php echo urlencode($dnn['username']); ?>" class="big">Lui envoyer un <b>Message Priv&eacute;</b></a></fieldset></td>
</tr>
</table>
<table style="width:500px;">

        <tr>
        <td><fieldset style="width:422px;"><?php
        $username = $dnn['username'];
$req = mysql_query('select nom from film where auteur="'.$username.'"');
while($filn = mysql_fetch_array($req))
        ?>
        <?php {
                echo ''.$filn['nom'].'';
        }
        ?>
     </fieldset><br /></table>
<table style="width:500px;">

        <tr>
        <td><fieldset style="width:422px;">
        <embed width="72" height="90" align="left" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://flashhelpbbl.free.fr/outils/swf/moa/geisha90p90.swf"></embed><?php
if($dnn['signature']!='')
{
$signature = $dnn['signature'];
require('inc/function.php');
        echo $signature;
}
else
{
        echo 'Ce membre n\'a pas de signature.';
}
?></fieldset><br />
<?php
}
        }
        else
        {
                echo 'Ce membre n\'existe pas.';
        }
}
else
{
        echo 'L\'identifiant du membre n\'est pas d&eacute;fini.';
}
?></table>
</div>
        <div class="bas"></div>
        </div>
        <div class="droite">
                &nbsp;
        </div>  <!-- Bas de page -->
<div style="background-image: url('http://imm.io/media/2Z/2ZoD.png');margin-left:370px;position: fixed;bottom: 0px;width: 100%;height: 30px; color: #404040; text-decoration: none; text-shadow: 0 1px 0px rgba(255,255,255,0.15);">   
<a href="javascript:visibilite('divid');"><img src="http://movies-of-artistes.geekheberg.net/images/copy.png"></a></div>
                <div id="divid" style="display:none;"><div id="coper">
                <p class="copyright"><img src="images/spacer.gif" width="340" height="0">Movies Of Artistes &copy;<br />
                <img src="images/spacer.gif" width="260" height="0">Graphisme par <a href="http://www.blablaland.com/site/membres.php?p=294955" title="Voir son profil de Blablaland">X_Amiral_X</a> et Programmation par <a href="http://www.blablaland.com/site/membres.php?p=1630" title="Voir son profil de Blablaland">Bonhomme</a>.</p>  
                </div></div>
</body>
 
</html>
zoom à l'endroit où ça bug :
<table style="width:500px;">

        <tr>
        <td><fieldset style="width:422px;"><?php
        $username = $dnn['username'];
$req = mysql_query('select nom from film where auteur="'.$username.'"');
while($filn = mysql_fetch_array($req))
        ?>
        <?php {
                echo ''.$filn['nom'].'';
        }
        ?>
     </fieldset><br /></table>


blingcru
29/01/2011 à 18:54:28
blingcru
Membre
Vais t'aider dans 24h si ta pas reussi mais pour commencer explique moi pk tu met 2 <?php au lieu d'un seul ? de plus il es dans une table si tu veux qui suis ta table .. il dois avoir des <td> </td> dans le echo .. mais bon la je dois attendre la fin mise en place dmon dedier avan de t'aider ..

de plus je remarque immediatement une belle erreur..



<?
if($dnn['avatar']!='')
{
        echo '<div style="width:90px;height:90px;backgroung-repeat:no-repeat;background-image:url('.$dnn['avatar'].')">
       <embed width="90" height="90" align="left" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'.$dnn['skin'].'"></embed>        
        </div>';
}
else
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/defaut.png" width="90" height="90"><br>';
}




#################################### COMME CECI DANS DES ECHO ##############

if($dnn['avatar']!='')
{
        echo '<div style=\"width:90px;height:90px;backgroung-repeat:no-repeat;background-image:url('.$dnn['avatar'].')">
       <embed width=\"90\" height=\"90\" align=\"left\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"'.$dnn['skin'].'\"></embed>        
        </div>';
}
else
{
        echo '<img src=\"http://movies-of-artistes.geekheberg.net/images/rang/defaut.png\" width=\"90\" height=\"90\"><br>';
}
?>


https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
blingcru
29/01/2011 à 19:27:42
blingcru
Membre
Essaie ceci voir

<?php
include('config.php');
 
/******************************************************
----------------Configuration Utilisateurs-------------
******************************************************/
$dn = mysql_query('select id, username, email, avatar, signup_date, skin, signature, rang, lastlogin from users where username="'.htmlentities(trim($_SESSION['username'])).'"');
$dnn = mysql_fetch_array($dn);
$rang = $dnn['rang'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Page g&eacute;n&eacute;r&eacute;e - L'indentation peut être g&eacute;nante. -->
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>.: Movies Of Artistes - Profil d'un membre :.</title>
        <link rel="stylesheet" type="text/css" href="http://movies-of-artistes.geekheberg.net/design.css" />
               <script>
function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
} else {
targetElement.style.display = "none" ;
}
}
</script>
</head>
<body>
<div id="header">
                      <embed width="777" height="149" type="application/x-shockwave-flash" wmode="transparent"
        pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://flashhelpbbl.free.fr/outils/swf/moa/header.swf"></embed >
        <?php
//Si lutilisateur est connecte, on lui donne un lien pour modifier ses informations, pour voir ses messages et un pour se deconnecter
 
//On compte le nombre de nouveaux messages que lutilisateur a
$nb_new_pm = mysql_fetch_array(mysql_query('select count(*) as nb_new_pm from pm where ((user1="'.$_SESSION['userid'].'" and user1read="no") or (user2="'.$_SESSION['userid'].'" and user2read="no")) and id2="1"'));
//Le nombre de nouveaux messages est stoque dans la variable $nb_new_pm
$nb_new_pm = $nb_new_pm['nb_new_pm'];
//On affiche les liens
?>
        </div>
<br /><div id="menu-gauche">                                    
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Principal</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="http://movies-of-artistes.geekheberg.net/" title="Un petit clic et vous voil&agrave; sur l'accueil du site.">Accueil</a></li>
                                        <li><a href="infos.php" title="Tout savoir sur le site.">Infos</a></li>
                                        <li><a href="film.php" title="Envie de voir un film ?">Film</a></li>
                                        <li><a href="contact.php" title="Pour contacter le site.">Contact</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Espace Membres</span>
                        </div>
                        <div class="bordure-milieu">
                        <ul>
                        <?php
        if(!isset($_SESSION['username']))
        {
       
                               
                                       echo' <li><a href=\"connexion.php\" title=\"Connecte toi.\">Connexion</a></li> ';
                                       echo' <li><a href=\"inscription.php\" title=\"Rejoind-Nous !\">Inscription</a></li>';
                                     
                }else {
               
                                      echo'  <li><center><a href=\"membres.php?id='.$dnn['id'].'\" title=\"Ton profil.\">'. htmlentities($dnn['username']).' </a></center></li>';
                   
                                   echo'   <li><a href=\"mon_compte.php\" title=\"Modifier ton compte.\">Mon Compte</a></li>';
                      echo'  <li><a href=\"list_pm.php\" title=\"Boite de r&eacute;ception.\">Mes MPs</a> ('. $nb_new_pm.')</li>';
                     
                }

if ($rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href=\"mod\"> Mod&eacute;ration</a></li>';
}
if ($rang == 4)
{
echo '<li><a href=\"Admin\"> Administration</a></li>';
}
if ($rang == 1 OR $rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href=\"connexion.php\">D&eacute;connexion</a></li>';
}
?>
                                </ul>
                                                </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Site</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="concept.php" title="Pour conna&icirc;tre le concept du site.">Concept</a></li>
                                        <li><a href="user.php" title="Liste de tous les membres">Membres</a></li>
                                        <li><a href="team.php" title="D&eacute;couvre la team du site.">Best Team</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                </div>
                <a href="http://www.blablaland.com/site/fansites.php?vote=29" alt="Voter pour Movies Of Artistes"><img src="http://movies-of-artistes.geekheberg.net/images/menu/sepabas.png" style="margin-left:13px;" alt="S&eacute;paration" border="0"/></a>
        </div>  <div id="milieu"><div class="haut"></div>
        <div class="milieu"><?php
mysql_query('insert into cpt_connectes (pseudo, timestamp) values ("'.$_SESSION['username'].'", "'.time().'")');

//On verifie que lidentifiant de lutilisateur est defini
if(isset($_GET['id']))
{
        $id = intval($_GET['id']);
        //On verifie que lutilisateur existe
        $dn = mysql_query('select username, email, avatar, signature, signup_date, rang, skin, lastlogin from users where id="'.$id.'"');
        if(mysql_num_rows($dn)>0)
        {
                $dnn = mysql_fetch_array($dn);
                                $username = $dnn['username'];
               
                //On affiche les donnees de lutilisateur
$filme = mysql_fetch_array(mysql_query('select count(*) as auteur from film where auteur="'.$username.'"'));
$nfilme = $filme['auteur'];//Ok je comprend :p è_é ça a fonctionner .. mais ça va pls ..je pense que je viens de
?>
 
<table style="width:500px;">
        <tr>
        <td><br /><?php
if($dnn['avatar']!='')
{
        echo '<div style=\"width:90px;height:90px;backgroung-repeat:no-repeat;background-image:url('.$dnn['avatar'].')\">
       <embed width=\"90\" height=\"90\" align=\"left\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"'.$dnn['skin'].'\"></embed>        
        </div>';
}
else
{
        echo '<img src=\"http://movies-of-artistes.geekheberg.net/images/rang/defaut.png\" width=\"90\" height=\"90\"><br>';
}

$cnn = mysql_fetch_array(mysql_query('select count(*) as nb from cpt_connectes where pseudo="'.mysql_real_escape_string($dnn['username']).'"'));
if($cnn['nb']>0)
{
        echo '<font color=\"green\"><b>&nbsp; &nbsp; connect&eacute;</b></font><br>';
}
else
{
        echo '<font color=\"red\"><b>&nbsp; d&eacute;connect&eacute;</b></font><br>';
}
?>
<?php if ($dnn['rang'] == '1')
{
        echo '<img src="\http://movies-of-artistes.geekheberg.net/images/rang/membre.png\" width=\"90\">';
        }
else if ($dnn['rang'] == '2')
{
        echo '<img src=\"http://movies-of-artistes.geekheberg.net/images/rang/modo.png\" width=\"90\">';
        }
else if ($dnn['rang'] == '3')
{
        echo '<img src=\"http://movies-of-artistes.geekheberg.net/images/rang/team.png\" width=\"90\">';
        }
else if ($dnn['rang'] == '4')
{
        echo '<img src=\"http://movies-of-artistes.geekheberg.net/images/rang/admin.png\" width=\"90\">';
        }
echo "<!-- ".$dnn['rang']." --><br/>";
?><br></td>
        <td class="left"><fieldset style="width:300px;"><legend><b>Infos</b></legend>
        Pseudo : <b><?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?></b><br />
        Email : Masqu&eacute; par l'Admin.<br />
        Arriv&eacute; sur M.O.A le : <b><?php echo date('d/m/Y',$dnn['signup_date']); ?></b><br />
        Derni&egrave;re connexion le <b><?php if ($dnn['lastlogin'] == '0'){ echo 'Cet utilisateur ne c\'est jamais connect&eacute;(e).'; } else { echo date('d/m/Y',$dnn['lastlogin']);} ?></b><br />
                <?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?> &agrave; post&eacute; <b><?php echo $nfilme; ?><b> Filme(s)<br>
                <?php
//On affiche un lien pour envoyer un mp a lutilisateur
if(isset($_SESSION['username']))
{
?><a href="new_pm.php?recip=<?php echo urlencode($dnn['username']); ?>" class="big">Lui envoyer un <b>Message Priv&eacute;</b></a></fieldset></td>
<?php
//On affiche un lien pour envoyer un mp a lutilisateur
if(isset($_SESSION['username']))
{
echo'<a href=\"new_pm.php?recip='.urlencode($dnn['username']).'\" class=\"big\">Lui envoyer un <b>Message Priv&eacute;</b></a></fieldset></td>';
echo'</tr></table>';
echo'<table style=\"width:500px\"><tr>';


       
        echo'<td><fieldset style=\"width:422px\">';
        $username = $dnn['username'];
$req = mysql_query('select nom from film where auteur="'.$username.'"');
while($filn = mysql_fetch_array($req))
       {
                echo '<td>'.$filn['nom'].'</td>';
        }
       
     echo'</fieldset><br /></table>';
echo'<table style=\"width:500px;\"><tr>';

       
        echo'<td><fieldset style=\"width:422px;\">';
        echo'<embed width=\"72\" height=\"90\" align=\"left\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" src=\"http://flashhelpbbl.free.fr/outils/swf/moa/geisha90p90.swf\"></embed>
if($dnn['signature']!='')
{
$signature = $dnn['signature'];
require('inc/function.php');
        echo $signature;
}
else
{
        echo 'Ce membre n\'a pas de signature.';
}
echo'</fieldset><br />';

}
        }
        else
        {
                echo 'Ce membre n\'existe pas.';
        }
}
else
{
        echo 'L\'identifiant du membre n\'est pas d&eacute;fini.';
}
?></table>
</div>
        <div class="bas"></div>
        </div>
        <div class="droite">
                &nbsp;
        </div>  <!-- Bas de page -->
<div style="background-image: url('http://imm.io/media/2Z/2ZoD.png');margin-left:370px;position: fixed;bottom: 0px;width: 100%;height: 30px; color: #404040; text-decoration: none; text-shadow: 0 1px 0px rgba(255,255,255,0.15);">    
<a href="javascript:visibilite('divid');"><img src="http://movies-of-artistes.geekheberg.net/images/copy.png"></a></div>
                <div id="divid" style="display:none;"><div id="coper">
                <p class="copyright"><img src="images/spacer.gif" width="340" height="0">Movies Of Artistes &copy;<br />
                <img src="images/spacer.gif" width="260" height="0">Graphisme par <a href="http://www.blablaland.com/site/membres.php?p=294955" title="Voir son profil de Blablaland">X_Amiral_X</a> et Programmation par <a href="http://www.blablaland.com/site/membres.php?p=1630" title="Voir son profil de Blablaland">Bonhomme</a>.</p>  
                </div></div>
</body>
 
</html>


https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
Aglzime
29/01/2011 à 21:53:08
Celui qui sacrifie sa liberté pour sa sécurité, ne mérite aucune des deux ! Aglzime
Membre
Bonsoir,
Essaye ceci:
<?php
include('config.php');
 
/******************************************************
----------------Configuration Utilisateurs-------------
******************************************************/
$dn = mysql_query('select id, username, email, avatar, signup_date, skin, signature, rang, lastlogin from users where username="'.htmlentities(trim($_SESSION['username'])).'"');
$dnn = mysql_fetch_array($dn);
$rang = $dnn['rang'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Page g&eacute;n&eacute;r&eacute;e - L'indentation peut être g&eacute;nante. -->
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>.: Movies Of Artistes - Profil d'un membre :.</title>
        <link rel="stylesheet" type="text/css" href="http://movies-of-artistes.geekheberg.net/design.css" />
               <script>
function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == "none")
{
targetElement.style.display = "" ;
} else {
targetElement.style.display = "none" ;
}
}
</script>
</head>
<body>
<div id="header">
                      <embed width="777" height="149" type="application/x-shockwave-flash" wmode="transparent"
        pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://flashhelpbbl.free.fr/outils/swf/moa/header.swf"></embed >
        <?php
//Si lutilisateur est connecte, on lui donne un lien pour modifier ses informations, pour voir ses messages et un pour se deconnecter
 
//On compte le nombre de nouveaux messages que lutilisateur a
$nb_new_pm = mysql_fetch_array(mysql_query('select count(*) as nb_new_pm from pm where ((user1="'.$_SESSION['userid'].'" and user1read="no") or (user2="'.$_SESSION['userid'].'" and user2read="no")) and id2="1"'));
//Le nombre de nouveaux messages est stoque dans la variable $nb_new_pm
$nb_new_pm = $nb_new_pm['nb_new_pm'];
//On affiche les liens
?>
        </div>
<br /><div id="menu-gauche">                                    
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Principal</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="http://movies-of-artistes.geekheberg.net/" title="Un petit clic et vous voil&agrave; sur l'accueil du site.">Accueil</a></li>
                                        <li><a href="infos.php" title="Tout savoir sur le site.">Infos</a></li>
                                        <li><a href="film.php" title="Envie de voir un film ?">Film</a></li>
                                        <li><a href="contact.php" title="Pour contacter le site.">Contact</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Espace Membres</span>
                        </div>
                        <div class="bordure-milieu">
                        <ul>
                        <?php
        if(!isset($_SESSION['username']))
        {
        ?>
                               
                                        <li><a href="connexion.php" title="Connecte toi.">Connexion</a></li>
                                        <li><a href="inscription.php" title="Rejoind-Nous !">Inscription</a></li>
                                        <?php
                }else {
                ?>
                                        <li><center><a href="membres.php?id=<?php echo $dnn['id']; ?>" title="Ton profil."><?php echo htmlentities($dnn['username']); ?></a></center></li>
                        <li><a href="mon_compte.php" title="Modifier ton compte.">Mon Compte</a></li>
                        <li><a href="list_pm.php" title="Boite de r&eacute;ception.">Mes MPs</a> (<?php echo $nb_new_pm; ?>)</li>
                        <?php
                }
                ?>
                               
<?php
if ($rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href="mod/"> Mod&eacute;ration</a></li>';
}
if ($rang == 4)
{
echo '<li><a href="Admin/"> Administration</a></li>';
}
if ($rang == 1 OR $rang == 2 OR $rang == 3 OR $rang == 4)
{
echo '<li><a href="connexion.php">D&eacute;connexion</a></li>';
}
?>
                                </ul>
                                                </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                        <img src="http://movies-of-artistes.geekheberg.net/images/menu/sepa.png" style="margin-left:13px;" alt="S&eacute;paration"/>
                </div>
                                <div class="element">
                        <div class="bordure-haut">
                                 <img src="http://movies-of-artistes.geekheberg.net/images/menu/papi.png" alt="-"/>
                                <span class="surlignage">Site</span>
                        </div>
                        <div class="bordure-milieu">
                                <ul>
                                        <li><a href="concept.php" title="Pour conna&icirc;tre le concept du site.">Concept</a></li>
                                        <li><a href="user.php" title="Liste de tous les membres">Membres</a></li>
                                        <li><a href="team.php" title="D&eacute;couvre la team du site.">Best Team</a></li>
                                </ul>
                        </div>
                        <div class="bordure-bas">
                                &nbsp;
                        </div>
                </div>
                <a href="http://www.blablaland.com/site/fansites.php?vote=29" alt="Voter pour Movies Of Artistes"><img src="http://movies-of-artistes.geekheberg.net/images/menu/sepabas.png" style="margin-left:13px;" alt="S&eacute;paration" border="0"/></a>
        </div>  <div id="milieu"><div class="haut"></div>
        <div class="milieu"><?php
mysql_query('insert into cpt_connectes (pseudo, timestamp) values ("'.$_SESSION['username'].'", "'.time().'")');
?>
<?php
//On verifie que lidentifiant de lutilisateur est defini
if(isset($_GET['id']))
{
        $id = intval($_GET['id']);
        //On verifie que lutilisateur existe
        $dn = mysql_query('select username, email, avatar, signature, signup_date, rang, skin, lastlogin from users where id="'.$id.'"');
        if(mysql_num_rows($dn)>0)
        {
                $dnn = mysql_fetch_array($dn);
                                $username = $dnn['username'];
               
                //On affiche les donnees de lutilisateur
$filme = mysql_fetch_array(mysql_query('select count(*) as auteur from film where auteur="'.$username.'"'));
$nfilme = $filme['auteur'];//Ok je comprend :p è_é ça a fonctionner .. mais ça va pls ..je pense que je viens de
?>
 
<table style="width:500px;">
        <tr>
        <td><br /><?php
if($dnn['avatar']!='')
{
        echo '<div style="width:90px;height:90px;backgroung-repeat:no-repeat;background-image:url('.$dnn['avatar'].')">
       <embed width="90" height="90" align="left" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" src="'.$dnn['skin'].'"></embed>        
        </div>';
}
else
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/defaut.png" width="90" height="90"><br>';
}

$cnn = mysql_fetch_array(mysql_query('select count(*) as nb from cpt_connectes where pseudo="'.mysql_real_escape_string($dnn['username']).'"'));
if($cnn['nb']>0)
{
        echo '<font color="green"><b>&nbsp; &nbsp; connect&eacute;</b></font><br>';
}
else
{
        echo '<font color="red"><b>&nbsp; d&eacute;connect&eacute;</b></font><br>';
}
?>
<?php if ($dnn['rang'] == '1')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/membre.png" width="90">';
        }
else if ($dnn['rang'] == '2')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/modo.png" width="90">';
        }
else if ($dnn['rang'] == '3')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/team.png" width="90">';
        }
else if ($dnn['rang'] == '4')
{
        echo '<img src="http://movies-of-artistes.geekheberg.net/images/rang/admin.png" width="90">';
        }
echo "<!-- ".$dnn['rang']." --><br/>";
?><br></td>
        <td class="left"><fieldset style="width:300px;"><legend><b>Infos</b></legend>
        Pseudo : <b><?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?></b><br />
        Email : Masqu&eacute; par l'Admin.<br />
        Arriv&eacute; sur M.O.A le : <b><?php echo date('d/m/Y',$dnn['signup_date']); ?></b><br />
        Derni&egrave;re connexion le <b><?php if ($dnn['lastlogin'] == '0'){ echo 'Cet utilisateur ne c\'est jamais connect&eacute;(e).'; } else { echo date('d/m/Y',$dnn['lastlogin']);} ?></b><br />
                <?php echo htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8'); ?> &agrave; post&eacute; <b><?php echo $nfilme; ?><b> Filme(s)<br>
                <?php
//On affiche un lien pour envoyer un mp a lutilisateur
if(isset($_SESSION['username']))
{
?><a href="new_pm.php?recip=<?php echo urlencode($dnn['username']); ?>" class="big">Lui envoyer un <b>Message Priv&eacute;</b></a></fieldset></td>
</tr>
</table>
<table style="width:500px;">

        <tr>
        <td><fieldset style="width:422px;"><?php
        $username = $dnn['username'];
$req = mysql_query('select nom from film where auteur="'.$username.'" ORDER BY id DESC LIMIT 0, 3');
while($filn = mysql_fetch_array($req))
{
                echo ''.$filn['nom'].'';
        }
        ?>
     </fieldset><br /></table>
<table style="width:500px;">

        <tr>
        <td><fieldset style="width:422px;">
        <embed width="72" height="90" align="left" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://flashhelpbbl.free.fr/outils/swf/moa/geisha90p90.swf"></embed><?php
if($dnn['signature']!='')
{
$signature = $dnn['signature'];
require('inc/function.php');
        echo $signature;
}
else
{
        echo 'Ce membre n\'a pas de signature.';
}
?></fieldset><br />
<?php
}
        }
        else
        {
                echo 'Ce membre n\'existe pas.';
        }
}
else
{
        echo 'L\'identifiant du membre n\'est pas d&eacute;fini.';
}
?></table>
</div>
        <div class="bas"></div>
        </div>
        <div class="droite">
                &nbsp;
        </div>  <!-- Bas de page -->
<div style="background-image: url('http://imm.io/media/2Z/2ZoD.png');margin-left:370px;position: fixed;bottom: 0px;width: 100%;height: 30px; color: #404040; text-decoration: none; text-shadow: 0 1px 0px rgba(255,255,255,0.15);">    
<a href="javascript:visibilite('divid');"><img src="http://movies-of-artistes.geekheberg.net/images/copy.png"></a></div>
                <div id="divid" style="display:none;"><div id="coper">
                <p class="copyright"><img src="images/spacer.gif" width="340" height="0">Movies Of Artistes &copy;<br />
                <img src="images/spacer.gif" width="260" height="0">Graphisme par <a href="http://www.blablaland.com/site/membres.php?p=294955" title="Voir son profil de Blablaland">X_Amiral_X</a> et Programmation par <a href="http://www.blablaland.com/site/membres.php?p=1630" title="Voir son profil de Blablaland">Bonhomme</a>.</p>  
                </div></div>
</body>
 
</html>
 
 ;)

coco
30/01/2011 à 00:03:47
coco
Membre
Merci Aglzime ça fonctionne parfaitement ;)

Pages: 1