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 34 35 36 37 38 39
   | <div id="colonnes_gauche">
	<div class="trait_vertical">
	<br /><div class="colonnesdroite">
	<table> <tr>
<th>Les dernières dossiers</th>
</tr>
<tr>
<td> Aucun Dossier pour le moment</td>
</tr>
</table> </div>
	<?php        
 
mysql_connect("", "", ""); //On se connecte à Mysql
mysql_select_db("");// on selectionne la base  
?>
<div class="colonnesdroite">
<table>
  <tr><th>Les dernières news rajoutés</th></tr>
<?php
 
$result = mysql_query('SELECT * FROM news ORDER BY id DESC LIMIT 0, 10');  
 
while ($data = mysql_fetch_array($result))  
{  
 
?>  
 
	   <tr><td><?php echo stripslashes($data['categorie']) ; //on recupère catégorie  ?>, le <?php echo date('d/m/Y à H\hi', strtotime($data['date'])); //on recupère la date ?> <BR>
         <a href="news.html?id=<?php echo $data['id']; ?>"><?php echo stripslashes($data['titre']); //on recupère titre  ?> </a></td></tr>
		<br>
 
 <?php   
} // Fin de la boucle des news  
 
?> 
	</table>
</div>
</div>
</div> | 
Partager