1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,18 @@ |
1 |
+<?php |
|
2 |
+session_start(); |
|
3 |
+include('fonctions.php'); |
|
4 |
+check_session(); |
|
5 |
+connectionBDD(); |
|
6 |
+ |
|
7 |
+$heure=date("H"); |
|
8 |
+$minutes=date("i"); |
|
9 |
+$heure_insert = $heure.":".$minutes; |
|
10 |
+$prenom = check_ChaineDeCaracteres($_SESSION['Prenom']); |
|
11 |
+$message_insert = check_ChaineDeCaracteres($_GET['corps']); |
|
12 |
+ |
|
13 |
+$sql = "INSERT INTO tableau(pseudo,heure,text) VALUES('".$prenom."','".$heure_insert."','".$message_insert."')"; |
|
14 |
+mysql_query($sql); |
|
15 |
+//on met le variable pour ne plus acrire de messages |
|
16 |
+$_SESSION['tableauEcrit']=1; |
|
17 |
+header("location: Taverne_Tableau.php"); |
|
18 |
+?> |
|
0 | 19 |
\ No newline at end of file |