27 lines
954 B
PHP
Executable File
27 lines
954 B
PHP
Executable File
<?php
|
|
$nom=$_GET['nom'];
|
|
$numero_fft=$_GET['numero_fft'];
|
|
$cp=$_GET['code_postal'];
|
|
$ville=$_GET['ville'];
|
|
$telephone=$_GET['telephone'];
|
|
$email=$_GET['email'];
|
|
$adherent=$_GET['adherent'];
|
|
include("conf.php");
|
|
include("mysql_compat.php");
|
|
include("conf.php");
|
|
if ($nom !='' and $numero_fft!='' and $telephone!='')
|
|
{
|
|
$db_connection=mysql_connect($db_host,$db_user,$password);
|
|
mysql_select_db($db_name,$db_connection);
|
|
$requete="INSERT INTO club (id_club,nom,numero_fft,adherent,ville,code_postal,telephone,e_mail) VALUES
|
|
('','$nom','$numero_fft','$adherent','$ville','$code_postal','$telephone','$email')";
|
|
$result=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
|
|
echo"<center><B>Le club a été enregistré</b></center>";
|
|
include("gestion_tournoi.php");
|
|
}
|
|
else {
|
|
echo"<center><B>Il manque au moins une information</b></center>";
|
|
include("creation_club.php");
|
|
}
|
|
?>
|