Golfier
cytoffin 4 years ago
parent 127dbb71d3
commit a4152cb6d4

@ -1,4 +1,5 @@
<link rel="stylesheet" href="css.css">
<link rel="shortcut icon" type="image/png" href="test.ico"/>
<meta charset="UTF-8">
<h1>Morpion</h1>
<p>
@ -13,39 +14,39 @@ require("MyDB.php");
$db = new MyDB();
$idpartie = "SJKFHKLDFS";
$db->query('INSERT INTO partie(Id) VALUES("'.$idpartie.'")');
//$db->query('INSERT INTO partie(Id) VALUES("'.$idpartie.'")');
echo "<h2>Id : $idpartie</h2>" ;
$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';
}
$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';
}
@ -80,15 +81,15 @@ if(isset($colonne)and $valeur!="" and $colonne!=''){
$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'];
$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'];
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Loading…
Cancel
Save