Skip to content

Commit

Permalink
remove pdoconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingaviator committed Nov 26, 2023
1 parent 4d08889 commit 6f59721
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions utils/getReadMeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
//Last modified: 11/27/2023
//Purpose: Get data from ReadMe Table in SQL db for filling form
include "config.php";
// Check the connection
if ($conn->connect_error) {
die('Connection failed: ' . $mysqli->connect_error);
}

// Check if the 'title' parameter is set in the URL
if (isset($_GET['title'])) {
Expand Down
1 change: 1 addition & 0 deletions utils/js/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function fillForm() {
fetch('/utils/getReadMeData.php?title=' + selectedTitle)
.then(response => response.text())
.then(data => {
console.log(data);
data = JSON.parse(data);
document.getElementById('subcommittee').value = data["subcommittee"];
document.getElementById('primary_contact').value = data["primary_contact"];
Expand Down

0 comments on commit 6f59721

Please sign in to comment.