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