tes messages sont envoyés vers quoi ? (base de donnée, email) ?
<?php
require_once("phplib/connect.php");
require_once("phplib/requete.class.php");
require_once("phplib/lib.php");
session_start();
if (!isset($_SESSION['id_membre'])) header("location: redirinscr.html");
$membrefiche = $_SESSION['id_membre'];
$sqlmess = new requete("SELECT", "message reçu");
$sqlmess->addChamp("tem_messages", "id_message");
$sqlmess->addChamp("tem_messages", "id_envoyeur");
$sqlmess->addChamp("tem_messages", "titre");
$sqlmess->addChamp("tem_messages", "message");
$sqlmess->addChamp("tem_messages", "dateenvoie");
$sqlmess->addChamp("tem_membres", "pseudo");
$sqlmess->addWhereClause("tem_membres.id_membre = tem_messages.id_envoyeur");
$sqlmess->addWhereClause("tem_messages.id_destinataire = '$membrefiche'");
$sqlmess->addWhereClause("tem_messages.id_message = '".$_GET['id_message']."'");
if (!$sqlmess->execute($link)) die($sqlmess->erreur);
if ($sqlmess->nbResult != 1) header("location: fiche.php");
foreach($sqlmess->donnees[0] as $key=>$value) {
$$key = nl2br(stripslashes($value));
}
$dateenvoie = substr($dateenvoie, 8, 2)."/".substr($dateenvoie, 5, 2)."/".substr($dateenvoie, 0,4);
$sqllu = "UPDATE tem_messages SET lu='1' WHERE id_message='".$_GET['id_message']."'";
$result = mysql_query($sqllu, $link) or die ($sqllu."<br/>".mysql_error());
?>
<!-- Début HEADER -->
<html>
<head>
<title>Mon site web</title>
<LINK rel="stylesheet" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
.Style3 {
color: #FF0099;
font-weight: bold;
}
.Style6 {color: #000000; }
.Style7 {
color: #000000;
font-weight: bold;
font-style: italic;
}
.Style8 {font-size: 16px}
.Style14 {
font-size: 14px;
color: #666666;
}
.Style15 {
font-style: italic;
font-size: 14px;
font-weight: bold;
}
#message {
width:700px;
height:200px;
overflow:auto;
}
-->
</style></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="back0">
<center>
<BR>
<TABLE width="770" height="816" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD width="777" height="82" valign="top" class="bg"><img src="images/banniere2.jpg" alt="banniere" width="770" height="82"></TD>
</TR>
<TR>
<TD height="734">
<!-- fin HEADER -->
<!-- cellule pour votre contenu : début -->
<TABLE width="770" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="3" height="678"><IMG src="images/clear.gif" width="3" height="1"></TD>
<TD width="8" class="bg1"><IMG src="images/clear.gif" width="8" height="1"></TD>
<TD width="748" class="bg1">
<TABLE width="748" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD class="txt0"><div align="left" class="Style6">
<div align="center">Ils nous rejoignent cette semaine : </div>
</div></TD>
</TR>
<TR>
<TD><IMG src="images/clear.gif" width="1" height="10"></TD>
</TR>
<TR>
<TD align="center">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD class="bg2"><IMG src="images/1.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/2.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/3.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><span class="txt0"><img src="images/6.jpg" width="50" height="50" hspace="2" vspace="2"></span></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/8.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/7.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/5.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
<TD><IMG src="images/clear.gif" width="5" height="1"></TD>
<TD class="bg2"><IMG src="images/4.jpg" width="50" height="50" hspace="2" vspace="2"></TD>
</TR>
</TABLE> </TD>
</TR>
<TR>
<TD align="center"><div align="right" class="Style3">
<div align="left"></div>
</div></TD>
</TR>
</TABLE>
<TABLE width="748" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="15"><IMG src="images/Btopleft_corner.gif" width="15" height="15"></TD>
<TD width="718"><IMG src="images/Bbrd_top.gif" width="718" height="15"></TD>
<TD width="15"><IMG src="images/Btopright_corner.gif" width="15" height="15"></TD>
</TR>
<TR>
<TD height="274" background="images/Bbrd_left.gif"> </TD>
<TD class="bg0">
<TABLE width="718" height="312" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD height="273" class="txt1"><table width="100%" border="1" cellspacing="0" cellpadding="1">
<tr>
<th colspan="6" bgcolor="#CCCCCC" scope="row"><p> </p>
<p>message reçu : </p>
<p> </p></th>
</tr>
<tr>
<td height="36" colspan="6" bgcolor="#FFCC99" scope="row"><div align="center">
<?php echo "<span class='Style15'>$titre</span> - envoyé par <span class='Style15'>$pseudo</span> le <span class='Style15'>$dateenvoie</span>"; ?>
</div></td>
</tr>
<tr>
<th height="201" colspan="6" scope="row">
<div id="message" >
<p class="Style14"> </p>
<p class="Style14"><?php echo $message; ?></p>
</div>
</th>
</tr>
</table>
<div align="center">
<table><tr>
<td><form action="envoimessage.php" method="get">
<input type="hidden" name="id" value="<?php echo $id_envoyeur; ?>">
<input type="submit" value="repondre">
</form></td>
<td><form action="phplib/supprmessages.php" method="post">
<input type="hidden" name="<?php echo "suppr[$id_message]"; ?>2" value="del">
<input type="submit" name="Submit22" value="suprimer">
</form></td>
</tr></table>
<a href="messagerie.php">Retour à la messagerie</a><br/>
<a href="fiche.php?id=<?php echo $membrefiche; ?>">Retour à ma fiche </a>
</div>
<p><a href="mailto:[email protected]"></a></p></TD>
</TR>
<TR>
<TD height="39" bgcolor="#CCCCCC" class="txt1"><p class="Style8"> </p> </TD>
</TR>
</TABLE> </TD>
<TD background="images/Bbrd_right.gif"> </TD>
</TR>
<TR>
<TD height="15"><IMG src="images/Bbotleft_corner.gif" width="15" height="15"></TD>
<TD><IMG src="images/Bbrd_bot.gif" width="718" height="15"></TD>
<TD><IMG src="images/Bbotright_corner.gif" width="15" height="15"></TD>
</TR>
</TABLE>
<div align="center"><a href="mailto:[email protected]" class="Style7">[email protected]</a></div></TD>
<TD width="8" class="bg1"><IMG src="images/clear.gif" width="8" height="1"></TD>
<TD width="3"><IMG src="images/clear.gif" width="3" height="1"></TD>
</TR>
</TABLE>
<!-- cellule pour votre contenu : fin -->
<!-- Début FOOTER --> </TD>
</TR>
</TABLE>
</center>
</body>
</html>
<!-- fin FOOTER -->Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 53 invités