diff --git a/TP/TP2.docx b/TP/TP2.docx
new file mode 100644
index 0000000..5395876
Binary files /dev/null and b/TP/TP2.docx differ
diff --git a/TP/TP2_codes/connect.php b/TP/TP2_codes/connect.php
new file mode 100644
index 0000000..a9e097d
--- /dev/null
+++ b/TP/TP2_codes/connect.php
@@ -0,0 +1,23 @@
+connect_error) {
+ die("Connection failed: " . $conn->connect_error);
+ }
+ echo "
"."Connexion reussie :)..."."
";
+
+// Close connexion
+ $conn->close();
+
+?>
\ No newline at end of file
diff --git a/TP/TP2_codes/index.php b/TP/TP2_codes/index.php
new file mode 100644
index 0000000..4ef2706
--- /dev/null
+++ b/TP/TP2_codes/index.php
@@ -0,0 +1,22 @@
+
Page de cotainnexion à ma base de données
+ + + diff --git a/TP/TP2_codes/parTP/index.php b/TP/TP2_codes/parTP/index.php new file mode 100644 index 0000000..94c2a1e --- /dev/null +++ b/TP/TP2_codes/parTP/index.php @@ -0,0 +1,17 @@ + +Page de connexion à ma base de données
+ + + diff --git a/TP/TP2_codes/parTP/tp2.php b/TP/TP2_codes/parTP/tp2.php new file mode 100644 index 0000000..c3bc74d --- /dev/null +++ b/TP/TP2_codes/parTP/tp2.php @@ -0,0 +1,64 @@ +"); +}else{ + // On va vérifier les variables + print("Verification du login et passThis is the PHP web page for this server.
+ + +