<?php
include ('logue.php'); 
include ('entete2.php');
include ('entete.php');
echo"<br><br><div align=\"center\">Panneau d'administration de StarGate Univers.";

$req = "SELECT id FROM matgraph_users WHERE mili_nbre > 10000 ORDER by id ASC";
$res = mysql_query($req) or die('Erreur SQL! <br>'.$req.'<br>'.mysql_error());
$num = mysql_num_rows($res);
if ( $num > 0 ) {
  While ( $row = mysql_fetch_array($res) ) {
  	$requete = "UPDATE matgraph_users SET mili_nbre = 10000 WHERE id='$row[id]'";
	$resultat = mysql_query($requete)or die('erreur sql<br>'.$requete.'<br>'.mysql_error());
	}
}
?>


