<?php
	try {
	$bdd=new PDO('mysql:host=localhost;dbname=tp2' ,'root','');
	} catch(exception $e) {
		die('error' . $e->getMessage());
		}
						  
	$bdd->exec('DELETE FROM minichat');
	
	header('Location: minichat.php');

?>