Add files via upload

This commit is contained in:
jfontaine35
2022-03-11 17:48:36 +01:00
committed by GitHub
parent 0b1200b366
commit 903ed5413c
22 changed files with 2756 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Cours PHP / MySQL</title>
<meta charset="utf-8">
<link rel="stylesheet" href="cours.css">
</head>
<body>
<h1>Bases de données MySQL</h1>
<?php
//phpinfo();
$servername = 'localhost';
$username = 'tux';
$password = 'Linux741!';
//On établit la connexion
$conn = new mysqli($servername, $username, $password);
//On vérifie la connexion
if($conn->connect_error){
die('Erreur : ' .$conn->connect_error);
}
echo 'Connexion réussie';
?>
</body>
</html>