Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Update distinct_grades.php
Browse files Browse the repository at this point in the history
  • Loading branch information
CristopherH95 authored May 15, 2018
1 parent d04d0fd commit 04b3d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distinct_grades.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$search_var = $_POST["search_CNum"];
$search_var2 = $_POST["search_SecNum"];
echo "<h3>Results for search '{$search_var}' - '{$search_var2}'</h3>";
$db_con = mysqli_connect("mariadb", "cs332t9", "waufeehi", "cs332t9");
$db_con = mysqli_connect("host", "username", "password", "db");
if (mysqli_connect_errno()) {
echo "Error code: " . mysqli_connect_errno();
echo "Failed to connect to MySQL: " . mysqli_connect_error();
Expand Down Expand Up @@ -60,4 +60,4 @@
?>
</div>
</body>
</html>
</html>

0 comments on commit 04b3d31

Please sign in to comment.