Skip to content
Snippets Groups Projects
Commit 3f07e58c authored by MHEN2606's avatar MHEN2606
Browse files

feat: API for REST Polling

parent 3616ac1a
Branches
Tags
No related merge requests found
...@@ -190,8 +190,8 @@ class Scholarship ...@@ -190,8 +190,8 @@ class Scholarship
} }
public function getAllScholarshipREST(){ public function getAllScholarshipREST(){
$query = "SELECT user_id, scholarship_id, title, description, short_description, coverage, contact_name, contact_email $query = "SELECT user_id, scholarship_id, title, description, short_description, coverage, contact_name, contact_email, GROUP_CONCAT(type) as type
FROM $this->table"; FROM $this->table NATURAL JOIN scholarshiptype GROUP BY user_id, scholarship_id";
$stmt = $this->db->setSTMT($query); $stmt = $this->db->setSTMT($query);
mysqli_stmt_execute($stmt); mysqli_stmt_execute($stmt);
$result = mysqli_stmt_get_result($stmt); $result = mysqli_stmt_get_result($stmt);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment