You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
766 B

<html>
<body>
test
<?php
require_once("connection.php");
require_once('tacheGateway.php');
require_once('tache.php');
/*
//A CHANGER
$user= 'thchazot1';
$pass='achanger';
$dsn='mysql:host=localhost;dbname=dbthchazot1';
try{
$con=new Connection($dsn,$user,$pass);
$t=new Tache($id, $name, $content);
$gateway=new TacheGateway($con);
$gateway->insert($t);
$query = "SELECT * FROM Tache";
$con->executeQuery($query, array(':id' => array($id, PDO::PARAM_STR)));
$results=$con->getResults();
Foreach($results as $row){
echo ($row['id']. " | ". $row['name'] . " | ". $row['content'] . "<br><br>");
}
}
catch( PDOException $Exception ) {
echo 'erreur';
echo $Exception->getMessage();
}
?*/
?>
</body>
</html>