-
-
Save NielsMinssen/57cf4fd5d469bb55b364608fb8f9439f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//On stock les données dans la variable dsn (data source name). | |
$dsn = 'mysql:host=ADRESSE_DU_SERVEUR;dbname=VOTRE_BASE_DE_DONNEES; | |
port=VOTRE_PORT;charset=VOTRE_ENCODAGE'; | |
//Ensuite il faut se connecter au serveur MySQL en renseignant nos informations. | |
$pdo = new PDO($dsn, 'VOTRE_NOM_UTILISATEUR_SERVEUR' , 'VOTRE_MOT_DE_PASSE'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment