diff --git a/app/controllers/project_controller.php b/app/controllers/project_controller.php index 3bb4a79..cde267c 100644 --- a/app/controllers/project_controller.php +++ b/app/controllers/project_controller.php @@ -43,13 +43,13 @@ include('../app/views/partials/header.php'); //Récupérer les informations du Formulaire - $strKeywords = $_GET['keywords']??''; - $intAuthor = $_GET['author']??0; - $intPeriod = $_GET['period']??0; - $strDate = $_GET['date']??''; - $strStartDate = $_GET['startdate']??''; - $strEndDate = $_GET['enddate']??''; - $intCategory = $_GET['category']??0; + $strKeywords = $_POST['keywords']??''; + $intAuthor = $_POST['author']??0; + $intPeriod = $_POST['period']??0; + $strDate = $_POST['date']??''; + $strStartDate = $_POST['startdate']??''; + $strEndDate = $_POST['enddate']??''; + $intCategory = $_POST['category']??0; // Récupération des projetc $objProjectModel = new ProjectModel; diff --git a/app/models/project_model.php b/app/models/project_model.php index f55917d..aaaea21 100644 --- a/app/models/project_model.php +++ b/app/models/project_model.php @@ -31,7 +31,7 @@ // Recherche par auteur if ($intAuthor > 0){ - $strRq .= $strWhere." project_creatorname = ".$intAuthor; + $strRq .= $strWhere." project_user = ".$intAuthor; $strWhere = " AND "; } diff --git a/app/views/search.php b/app/views/search.php index c64b875..a1e5b9c 100644 --- a/app/views/search.php +++ b/app/views/search.php @@ -86,8 +86,7 @@ foreach($arrCategory as $arrDetCategory){ ?>