Files
resatennis_tyroltenn/www/site_inscription/modification_terrain_suite3.php

29 lines
977 B
PHP
Executable File

<?php
$id_club=$_GET['club_id'];
$nom_terrain=$_GET['nom_terrain'];
$id_terrain=$_GET['id_terrain'];
$type=$_GET['type'];
$protection=$_GET['protection'];
$surface=$_GET['surface'];
$lieu=$_GET['lieu'];
$heure_ouv=$_GET['heure_ouv'];
$heure_fer=$_GET['heure_fer'];
$requete="UPDATE reservable SET id_club='$id_club', nom='$nom_terrain', type='$type', protection='$protection', surface='$surface', lieu='$lieu', heure_ouverture='$heure_ouv', heure_fermeture='$heure_fer' WHERE id_reservable='$id_terrain'";
echo $requete;
include("conf.php");
include("mysql_compat.php");
include ("conf.php");
$db_connection=mysql_connect($db_host,$db_user,$password);
mysql_select_db($db_name,$db_connection);
$reponse=mysql_query($requete, $db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
if($reponse!=0) {
echo "Le terrain a &eacute;t&eacute; modifi&eacute;";
}
else {
echo"pas fonctionner";
}
mysql_close($db_connection);
include("gestion_tournoi.php");
?>