diff --git a/SwichGIT/MorpionMulti/DB.php b/SwichGIT/MorpionMulti/DB.php
new file mode 100644
index 0000000..a632c4e
--- /dev/null
+++ b/SwichGIT/MorpionMulti/DB.php
@@ -0,0 +1,133 @@
+
+
+
Morpion
+
+
+
+open('mysqlitedb.db');
+ }
+}
+
+$db = new MyDB();
+
+
+$colonne="";
+
+if(isset($_POST['case'])){
+
+ if($_POST['case']=='1'){
+ $colonne='un';
+}
+elseif ($_POST['case']=='2'){
+ $colonne='deux';
+}
+elseif ($_POST['case']=='3'){
+ $colonne='trois';
+}
+elseif ($_POST['case']=='4'){
+ $colonne='quatre';
+}
+elseif ($_POST['case']=='5'){
+ $colonne='cinq';
+}
+elseif ($_POST['case']=='6'){
+ $colonne='six';
+}
+elseif ($_POST['case']=='7'){
+ $colonne='sept';
+}
+elseif ($_POST['case']=='8'){
+ $colonne='huit';
+}
+elseif ($_POST['case']=='9'){
+ $colonne='neuf';
+}
+ else{
+ $colonne='null';
+ }
+}
+$valeur="";
+if(isset($_POST['forme'])){
+ $valeur=$_POST['forme'];
+}
+
+
+header("refresh: 2");
+//$db->exec('CREATE TABLE partie(Id STRING,un STRING,deux STRING,trois STRING, quatre STRING,cinq STRING,six STRING,sept STRING,huit STRING,neuf STRING)');
+
+
+
+
+$idpartie = "BQANQsS";
+
+
+
+if(isset($colonne)and $valeur!="" and $colonne!=''){
+
+ $aff=$db->query('SELECT "'.$colonne.'" FROM partie where Id="'.$idpartie.'" ');
+ $res = $aff->fetchArray();
+
+ if(strlen($res[$colonne])==1){
+ echo " Insertion impossible une valeur est déjà à l'intérieur
";
+ }
+ else{
+ $update = $db->query('UPDATE partie SET "'.$colonne.'" = "'.$valeur.'" where Id="'.$idpartie.'" ');
+ }
+
+}
+
+//$db->query('INSERT INTO partie(Id) VALUES("'.$idpartie.'")');
+
+//$db->query('INSERT INTO partie(Id) VALUES("'.$idpartie.'")');
+
+
+
+
+
+
+
+$afficher = $db->query('SELECT * FROM partie where Id="'.$idpartie.'" ');
+while ($row = $afficher->fetchArray()) {
+
+$un=$row['un'];
+$deux=$row['deux'];
+$trois=$row['trois'];
+$quatre=$row['quatre'];
+$cinq=$row['cinq'];
+$six=$row['six'];
+$sept=$row['sept'];
+$huit=$row['huit'];
+$neuf=$row['neuf'];
+
+
+}
+echo "
+
+
+ $un |
+ $deux |
+ $trois |
+
+
+ $quatre |
+ $cinq |
+ $six |
+
+
+ $sept |
+ $huit |
+ $neuf |
+
+
+ ";
+
+?>
diff --git a/SwichGIT/MorpionMulti/css.css b/SwichGIT/MorpionMulti/css.css
new file mode 100644
index 0000000..b0e2494
--- /dev/null
+++ b/SwichGIT/MorpionMulti/css.css
@@ -0,0 +1,40 @@
+body{
+ margin: 0; /* pour éviter les marges */
+ text-align: center; /* pour corriger le bug de centrage IE */
+
+}
+
+h1 {
+ font-size: 4em;
+ font-weight: 700;
+ font-family: 'Titillium Web';
+ text-align: center;
+}
+table {
+ margin: auto;
+}
+td {
+ width: 100px;
+ height: 100px;
+ text-align: center;
+ font-size: 4em;
+}
+
+td:nth-last-of-type(2) {
+ border-left: 2px solid black;
+ border-right: 2px solid black;
+}
+
+tr:nth-last-of-type(2) td{
+ border-top: 2px solid black;
+ border-bottom: 2px solid black;
+}
+
+p{
+ text-align: center;
+ color: #F43C3F
+}
+
+
+
+
diff --git a/SwichGIT/MorpionMulti/mysqlitedb.db b/SwichGIT/MorpionMulti/mysqlitedb.db
new file mode 100644
index 0000000..fd7e6cd
Binary files /dev/null and b/SwichGIT/MorpionMulti/mysqlitedb.db differ