Citation :
[...]
$_SESSION['connect_email']=$_POST['type_connect_email'];
$_SESSION['connect_password']=$_POST['type_connect_password'];
$_SESSION['coor_raison_sociale1']=$_POST['type_coor_raison_sociale'];
$_SESSION['coor_nom1']=$_POST['type_coor_nom'];
$_SESSION['coor_prenom1']=$_POST['type_coor_prenom'];
$_SESSION['coor_fonction1']=$_POST['type_coor_fonction'];
$_SESSION['coor_adresse1']=$_POST['type_coor_adresse'];
$_SESSION['coor_cp1']=$_POST['type_coor_cp'];
$_SESSION['coor_ville1']=$_POST['type_coor_ville'];
$_SESSION['coor_telephone1']=$_POST['type_coor_telephone'];
$_SESSION['coor_fax1']=$_POST['type_coor_fax'];
$_SESSION['coor_email1']=$_POST['type_coor_email'];
$_SESSION['coor_password1']=$_POST['type_coor_password'];
$_SESSION['coor_repassword1']=$_POST['type_coor_repassword'];
$coor_raison_sociale=$_SESSION['coor_raison_sociale1'];
$coor_nom=$_SESSION['coor_nom1'];
$coor_prenom=$_SESSION['coor_prenom1'];
$coor_fonction=$_SESSION['coor_fonction1'];
$coor_adresse=$_SESSION['coor_adresse1'];
$coor_cp=$_SESSION['coor_cp1'];
$coor_ville=$_SESSION['coor_ville1'];
$coor_telephone=$_SESSION['coor_telephone1'];
$coor_fax=$_SESSION['coor_fax1'];
$coor_email=$_SESSION['coor_email1'];
$coor_pseudo=$_SESSION['coor_pseudo1'];
$coor_password=$_SESSION['coor_password1'];
$connect = mysql_connect("$host_bdd","$login_bdd","$pwd_bdd" ); // selection de la base mysql_select_db("$bddname", $connect); // Requete d'insertion $sql = mysql_query("SELECT * FROM connexion" );
$result = mysql_num_rows($sql);
$sql="INSERT INTO connexion (id, coor_raison_sociale, coor_nom, coor_prenom, coor_fonction, coor_adresse, coor_cp, coor_ville, coor_telephone, coor_fax, coor_email, coor_password)"; $sql.="VALUES ('', '$coor_raison_sociale', '$coor_nom', '$coor_prenom', '$coor_fonction', '$coor_adresse', '$coor_cp', '$coor_ville', '$coor_telephone', '$coor_fax', '$coor_email', '$coor_password')"; // fermeture de la connection mysql_close($connect);
|