<?
include ('logue.php');
include ('entete2.php');

$req = "SELECT * FROM matgraph_msg WHERE 1 UNION SELECT * FROM matgraph_msg_log WHERE 1 ORDER BY id DESC";
$res = mysql_query($req) or die('Erreur SQL! <br>'.$req.'<br>'.mysql_error());
$num = mysql_num_rows($res);

if( $num > 0 ) {
	$row = mysql_fetch_array($res);

	$id_prec = $row[id];

	while( $row = mysql_fetch_array($res) ) {
		$id_now = $row[id];

		if( $id_now != ($id_prec - 1) ) {
			echo "<br> Gap détecté : $id_now :: $id_prec";
		}

		$id_prec = $id_now;

	}

}




?>