Ok merci !
J'ai fouillé un peu et j'ai trouvé cela ....mais j'ai une erreur que je ne comprends pas du tout. 
Si vous avez une idée ...elle est la bienvenue !
	
	Parse error: syntax error, unexpected $end in /home/ser/public_html/randomannonce1.php on line 118
 
	
	| 12
 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
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 
 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Dernières annonces</title>
</head>
 
<body>
 
<!-- La taille du cadre de News - La Taille de la Bordure et sa couleur --> 
<table width="303" border="0" bordercolor="#EBECED" cellspacing="0" cellpadding="0"> 
 
<!-- Couleur de la bordure qui entoure le Cadre où défilent les News --> 
<tr bordercolor="#808080"> 
 
<!-- Mention Obligatoire mais sans aucune influence si vous changez sa valeur, mais un déréglement se produire si vous l'ôtez complétement du Code Source --> 
<td height="1"> 
 
<!-- L'attribut MARQUEE permet le défilement - onMouseOver=this.stop() signifie que quand la souris entrera dans le Cadre, le texte stoppera son défilement - onMouseOut=this.start() signifie que quand la souris ne sera pas dans le Cadre, le texte défilera - scrollAmount définit la vitesse de Déplacement du Texte - direction définit si le Texte défilera de haut en bas (Down) ou de bas en haut (Up) - width définit la taille du Cadre où défile les News du Site - height définit la Hauteur du Cadre où défilent les News du Site - align définit le centrage ou l'excentrage des News du Site --> 
<MARQUEE onMouseOver=this.stop() onMouseOut=this.start() scrollAmount=2 direction=Up width=297 height=68 align="left"> 
 
<!-- Vos News du Site --> 
<?php 
 
// connexion à la base
$db = mysql_connect('localhost', '*********', '******')  or die('Erreur de connexion '.mysql_error());
// sélection de la base  
 
    mysql_select_db('*****_****',$db)  or die('Erreur de selection '.mysql_error()); 
 
 
 
	// on crée la requête SQL nombre d'annonces
 
$sql = 'SELECT * FROM `annonce` WHERE TO_DAYS(NOW()) - TO_DAYS(`datepub`) <= 2';
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); 
if (@ mysql_num_rows($req) < 1) {
    echo 'Votre annonce ici ';
 
 
echo '<table cellspacing="10"><tr><th><span style="font-weight: 400">
	<font size="2" face="Bauhaus 93" color="#99CC00">Quelques annonces au hasard</font></span><font size="2">
	</font></th></tr>' . "\n";
while ($ligne = mysql_fetch_array($result)) {
  echo '<table cellpadding="0" cellspacing="0" width="493" height="303">
		<!-- MSCellFormattingTableID="1" -->
		<tr>
			<td width="483">
			<table cellpadding="0" cellspacing="0" width="483" height="293">
				<tr>
					<td>
					<img alt="" src="image/MsoPnl_Cnr_tl_1542.gif" width="20" height="20"></td>
					<td bgcolor="#99CC00" nowrap>
					<!-- MSCellFormattingType="header" -->
					<b>
			
		<a href="pzer.php">
		<font size="2" face="Verdana" color="#800080">
			
					<i>
					'.$data['login_user'].'</i></font><i><font size="2" face="Verdana" color="#800080"> </font></i></a><i>
					<font size="2" face="Verdana" color="#800080">  cherche 
					un(e) </font></i></b><font face="Verdana" size="2"> 
				'.$data['sexe_b'].'</font></td>
					<td height="20">
					<img alt="" src="image/MsoPnl_Cnr_tr_1544.gif" width="20" height="20"></td>
				</tr>
				<tr>
					<td colspan="3" height="254">
					<!-- MSCellFormattingType="content" -->
					 <p align="left"><b><font face="Verdana" size="2">Ville: </font></b>
				<font face="Verdana" size="2">'.$data['ville'].'</font></p>
					<p align="left"><b><font face="Verdana" size="2">Type de lieu:</font></b><font face="Verdana" size="2"> '.$data['lieu_type'].'  </font><b>
		<font face="Times New Roman" size="2">DATE</font></b><font face="Verdana" size="2"><b>:</b> '.$data['jour'].'/'.$data['mois'].'/'.$data['an'].'<b>  
					à
		</b>'.$data['heure'].':'.$data['minute'].'</font></p>
					<p align="left">
				<font face="Verdana" size="2"><b>Description:</b> '.$data['description_b'].'</font> </p>
					<p align="left">
		<font face="Verdana" size="2"> 
					<b>Message</b> 
				'.$data['description'].'</font></p>
					<p> </p>
					<p> </td>
				</tr>
				<tr>
					<td width="20">
					<img alt="" src="image/MsoPnl_Cnr_bl_1546.gif" width="20" height="19"></td>
					<td nowrap bgcolor="#FFFFFF" width="443">
					<!-- MSCellFormattingType="footer" -->
					 </td>
					<td height="19" width="20">
					<img alt="" src="image/MsoPnl_Cnr_br_1548.gif" width="20" height="19"></td>
				</tr>
			</table>
			</td>
			<td height="293" width="10">
			<img alt="" width="10" height="293" src="image/MsoPnl_sh_b_1541.jpg"></td>
		</tr>
		<tr>
			<td colspan="2" height="10">
			<img alt="" width="493" height="10" src="image/MsoPnl_sh_r_1540.jpg"></td>
		</tr>
	</table>' . $ligne[0] . '</font></td></tr>' . "\n";
}
echo '</table>' . "\n";
?>
<br> 
<br>   
<!-- Fin de la Zone de Défilement --> 
</MARQUEE>   
<!-- Ferme les cellules, les colonnes et le tableau ouverts au paravant - Mention obligatoire, à ne pas supprimer ! --> 
</td> 
</tr> 
</table> 
</body>
</html> | 
 
						
					
Partager