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.
29 lines
510 B
29 lines
510 B
<html>
|
|
|
|
<body>
|
|
test
|
|
|
|
<?php
|
|
require_once(__DIR__.'/config/config.php');
|
|
require_once(__DIR__."/model/Connection.php");
|
|
try{
|
|
$con=new Connection($dsn,$login,$mdp);
|
|
|
|
$query = "SELECT * FROM categorie WHERE id=:id";
|
|
|
|
|
|
echo $con->executeQuery($query, array(':id' => array(1, PDO::PARAM_INT) ) );
|
|
|
|
$results=$con->getResults();
|
|
Foreach ($results as $row)
|
|
print $row['titre'];
|
|
|
|
|
|
}
|
|
catch( PDOException $Exception ) {
|
|
echo 'erreur';
|
|
echo $Exception->getMessage();}
|
|
?>
|
|
|
|
</body>
|
|
</html>
|