Connexion a la base de donné

mejdouda -  
 nakata -
Bonjour,
j'ai une base de donné, et une interface html, je veux avec une bouton "inscrire" se connecter a la base et enregister mon compte!!!
Configuration: Windows XP
Internet Explorer 6.0

3 réponses

  1. Vincinho
     
    Quel langage utilises tu ? Quelle base de données utilise tu ? Comment tu constuit ton compte ?
    C'est un minimum pour qu'on puisses t'aider !!
    0
  2. nakata
     
    Bonjour,
    j'ai une page html "inscription" cree avec dreamweaver, sous un bouton "inscrire" je veut cree un script php qui faire la connexion a la base de donné et ajouter les donner, j'utilise WAMP!!!!!

    // mon BOUTON en html:

    <td valign="top"><form id="form3" name="form3" method="post" action="">
    <input name="Submit" type="submit" class="Style4" value="Inscrire" >
    ______________________________________________________________________________
    /// script en php:

    <?php

    /*****************************connexion*******************************/
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_connections = "127.0.0.1";
    $database_connections = "Notre base I4";
    $username_connections = "root";
    $password_connections = "";
    $connections = mysql_pconnect($hostname_connections, $username_connections, $password_connections) or trigger_error(mysql_error(),E_USER_ERROR);

    /*****************************script sql*******************************/

    mysql_connect("localhost", "root", ""); // Connexion à MySQL
    mysql_select_db("Notre base I4");
    $reponse = mysql_query("SELECT * FROM inscriptionenseignant"); // Requête SQL

    /*****************************deconnexion*******************************/

    mysql_close(); // Déconnexion de MySQL
    ?>
    0
  3. nakata
     
    Bonjour,
    j'ai une page html "inscription" cree avec dreamweaver, sous un bouton "inscrire" je veut cree un script php qui faire la connexion a la base de donné et ajouter les donner, j'utilise WAMP!!!!!

    // mon BOUTON en html:

    <td valign="top"><form id="form3" name="form3" method="post" action="">
    <input name="Submit" type="submit" class="Style4" value="Inscrire" >
    ______________________________________________________________________________
    /// script en php:

    <?php

    /*****************************connexion*******************************/
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_connections = "127.0.0.1";
    $database_connections = "Notre base I4";
    $username_connections = "root";
    $password_connections = "";
    $connections = mysql_pconnect($hostname_connections, $username_connections, $password_connections) or trigger_error(mysql_error(),E_USER_ERROR);

    /*****************************script sql*******************************/

    mysql_connect("localhost", "root", ""); // Connexion à MySQL
    mysql_select_db("Notre base I4");
    $reponse = mysql_query("SELECT * FROM inscriptionenseignant"); // Requête SQL

    /*****************************deconnexion*******************************/

    mysql_close(); // Déconnexion de MySQL
    ?>
    0