Files
resatennis_tyroltenn/www/site_inscription/creation_terrain_suite.php

24 lines
864 B
PHP
Executable File

<?php
$id_club=$_GET['club'];
$nom=$_GET['nom'];
$lieu=$_GET['lieu'];
$type=$_GET['type'];
$protection=$_GET['protection'];
$surface=$_GET['surface'];
$heure_ouv=$_GET['heure_ouv'];
$heure_fer=$_GET['heure_fer'];
$requete="INSERT INTO reservable(id_reservable,id_club, nom, type, protection, surface, lieu, heure_ouverture, heure_fermeture)
VALUES('','$id_club', '$nom', '$type', '$protection', '$surface', '$lieu', '$heure_ouv','$heure_fer')";
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; cr&eacute;e";
mysql_close($db_connection);
include("gestion_tournoi.php");
?>