A voir également:
- Connexion a la base de donné
- Gmail connexion - Guide
- Base de registre - Guide
- Connexion limitée wifi tv ✓ - Forum Box et Streaming vidéo
- Meetic dernière connexion ✓ - Forum Réseaux sociaux
- Www.youtube.com n'autorise pas la connexion. - Forum YouTube
3 réponses
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 !!
C'est un minimum pour qu'on puisses t'aider !!
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
?>
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
?>
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
?>
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
?>