Easyphp
Fermé
benjim
Messages postés
125
Date d'inscription
jeudi 8 novembre 2007
Statut
Membre
Dernière intervention
27 avril 2015
-
8 janv. 2009 à 15:40
Utilisateur anonyme - 8 janv. 2009 à 16:07
Utilisateur anonyme - 8 janv. 2009 à 16:07
A voir également:
- Easyphp
- Telecharger easyphp - Télécharger - Divers Web & Internet
- Easyphp 1.8 ✓ - Forum PHP
- Easyphp windows 11 - Forum Logiciels
- Msvcr110.dll easyphp - Forum PHP
- Easyphp msvcr110.dll ✓ - Forum Logiciels
1 réponse
Utilisateur anonyme
8 janv. 2009 à 16:07
8 janv. 2009 à 16:07
bonjour,
<?php
/* coonexion à la base de donnnées locale WXP*/
#specify the connection information
$db_server ="localhost";
$db_name = "nom_base";
$username = "root";
$password = "";
#Connexion à la base
$dbh = @mysql_connect($db_server,$username,$password) or die
("La connection sur $db_server avec le login '$username'/'$password' plantée.");
#select the database. If the database is not found on the server, let us know
$db = @mysql_select_db($db_name) or die
("Connection made. But database '$db_name' was not found.");
?>
--
<?php
/* coonexion à la base de donnnées locale WXP*/
#specify the connection information
$db_server ="localhost";
$db_name = "nom_base";
$username = "root";
$password = "";
#Connexion à la base
$dbh = @mysql_connect($db_server,$username,$password) or die
("La connection sur $db_server avec le login '$username'/'$password' plantée.");
#select the database. If the database is not found on the server, let us know
$db = @mysql_select_db($db_name) or die
("Connection made. But database '$db_name' was not found.");
?>
--