CODE
$liendb = @mysql_connect ("localhost", "zatools_allo", "password");
if (!$liendb) {$mist=0;}
else {
$mist=1;
@mysql_select_db ("zatools_perso");
$sql = "SELECT ajout FROM stat";
$resultat = @mysql_query ($sql);
$tot = @mysql_result($resultat,0,0);
$tot+=1;
$sql = "UPDATE stat SET ajout = '$tot'";
@mysql_query ($sql);
@mysql_close ($liendb);
if (!$liendb) {$mist=0;}
else {
$mist=1;
@mysql_select_db ("zatools_perso");
$sql = "SELECT ajout FROM stat";
$resultat = @mysql_query ($sql);
$tot = @mysql_result($resultat,0,0);
$tot+=1;
$sql = "UPDATE stat SET ajout = '$tot'";
@mysql_query ($sql);
@mysql_close ($liendb);
This code was tested.
Do I have to make something to activate the data base?
Mercie Alain