4a503405 |
<?php
session_start();
include('fonctions.php');
check_session();
connectionBDD();
$heure=date("H");
$minutes=date("i");
$heure_insert = $heure.":".$minutes;
$prenom = check_ChaineDeCaracteres($_SESSION['Prenom']);
$message_insert = check_ChaineDeCaracteres($_GET['corps']);
$sql = "INSERT INTO tableau(pseudo,heure,text) VALUES('".$prenom."','".$heure_insert."','".$message_insert."')";
mysql_query($sql);
//on met le variable pour ne plus acrire de messages
$_SESSION['tableauEcrit']=1;
header("location: Taverne_Tableau.php");
?>
|