bdd_connecter_base("OBERLECHNER.NET");
// ON RECUPERE L'ENREGISTREMENT CORRESPONDANT A L'INDICE
$requete = "SELECT * FROM download_url WHERE du_indice=".$_GET['INDICE'];
$base->bdd_execsql($requete);
$fichier = $base->bdd_lire_champ("du_url");
$cptchargement = $base->bdd_lire_champ("du_cpt");;
if (empty($cptchargement))
$cptchargement="1";
else
$cptchargement++;
// ON INCREMENTE LE COMPTEUR DE CHARGEMENT
$requete = "UPDATE download_url SET du_cpt=".$cptchargement++. ",du_date_lastdown='".$base->bdd_datetime_courant(). "' WHERE du_indice=".$_GET['INDICE'];
$base->bdd_execsql($requete);
$base->bdd_fermer();
// print $requete;
header("Location: $fichier");
?>