require_once("backend/connection.php");
$Link = mysql_connect($Host, $User, $Password);
mysql_select_db($DBName, $Link);
$QueryCpt = "Select Compteur from Compteur Where Lang='FR'";
$ResultCpt = mysql_query($QueryCpt, $Link) or die(mysql_error());
$rowCpt = mysql_fetch_assoc($ResultCpt);
$visites = $rowCpt['Compteur'];
if (!(isset($_SESSION['logvisit']))) {
$_SESSION['logvisit'] = 1;
$visites = $visites + 1;
$QueryCpt = "Update Compteur Set Compteur='".$visites."' Where Lang='FR'";
$ResultCpt = mysql_query($QueryCpt, $Link) or die(mysql_error());
}
for ($x = 0; $x < strlen($visites); $x++) {
echo '';
}
?>
|
VISITEURS/VISITS |
|