parent
8fc9720265
commit
a102a64246
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
echo "php test"
|
||||
?>
|
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
echo "<h1>2do test</h1>";
|
||||
?>
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
$fc = new FrontCtrl();
|
||||
$TMessage = array();
|
||||
|
||||
require_once(controller/FrontCtrl.php);
|
||||
require(erreur.php);
|
||||
# $fc = new FrontCtrl();
|
||||
# $TMessage = array();
|
||||
#
|
||||
# require_once(controller/FrontCtrl.php);
|
||||
# require(erreur.php);
|
||||
echo "<h1>2do index<h1>";
|
||||
?>
|
@ -1,17 +0,0 @@
|
||||
<?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!";
|
||||
?>
|
Loading…
Reference in new issue