generated from Templates_CodeFirst/templateHtmlCss
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.
40 lines
668 B
40 lines
668 B
<html>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
|
|
require_once("connection.php");
|
|
require_once('tacheGateway.php');
|
|
|
|
//A CHANGER
|
|
$user= 'thchazot1';
|
|
$pass='achanger';
|
|
$dsn='mysql:host=localhost;dbname=dbthchazot1';
|
|
|
|
$id=468;
|
|
$name='LALALILALOU';
|
|
$content='Argent, Encore de l\'argent';
|
|
|
|
|
|
try{
|
|
$con=new Connection($dsn,$user,$pass);
|
|
$t=new Tache($id, $name, $content, FALSE);
|
|
$gateway=new TacheGateway($con);
|
|
|
|
$gateway->insert($t, 1);
|
|
|
|
$tabTache=$gateway->getTacheFromIdList(1);
|
|
foreach($tabTache as $tache){
|
|
print($tache);
|
|
echo "<br>";
|
|
}
|
|
}
|
|
catch( PDOException $Exception ) {
|
|
echo 'erreur';
|
|
echo $Exception->getMessage();
|
|
}
|
|
?>
|
|
|
|
</body>
|
|
</html>
|