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.
18 lines
397 B
18 lines
397 B
<?php
|
|
require("../dal/Connection.php");
|
|
require("credentials.php");
|
|
|
|
$prio='urgent';
|
|
$con = new Connection('mysql:host=localhost;dbname=phpproject',$user,$pass);
|
|
$query = 'SELECT id FROM Tache WHERE priorite=:prio';
|
|
|
|
$con->executeQuery($query,array(
|
|
':prio'=>array($prio,PDO::PARAM_STR)));
|
|
|
|
$results=$con->getResults();
|
|
foreach($results as $row)
|
|
echo $row['id'];
|
|
|
|
echo "</br> its all good!";
|
|
?>
|