<?php
include('commentaires/config/grab_globals.lib.php');
include('commentaires/config/config.inc.php');
include('commentaires/langues/'.$langue.'.lang.php');
include ('config.php');
$sql = "SELECT mail FROM matgraph_users WHERE login='$login'";
$req = db_mysql_Query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$data = mysql_fetch_array($req);

$sqlid = "SELECT id FROM matgraph_users WHERE login='$login'";
$reqid = db_mysql_Query($sqlid) or die('Erreur SQL !<br>'.$sqlid.'<br>'.mysql_error());
$dataid = mysql_fetch_array($reqid);
$idlogin = $dataid['id'] ;


?>