Skip to content

Commit

Permalink
Merge pull request #60 from K-Konstantinidis/releaseHotfix
Browse files Browse the repository at this point in the history
HotFix for the assignment submission
  • Loading branch information
Kodoban authored Jun 21, 2022
2 parents 3fc04f0 + be224c0 commit 08ec6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Web-App/public_html/admin/createPlayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@
// No errors were encountered, procceed
if($img_error == 0) {
// Get the max number that exists
$max_img_num_db = $conn
->query("SELECT MAX(CAST(SUBSTRING(img_path,27,4) AS INT)) AS MAX_NUM FROM player")
->fetch();
// $max_img_num_db = $conn
// ->query("SELECT MAX(CAST(SUBSTRING(img_path,27,4) AS INT)) AS MAX_NUM FROM player")
// ->fetch();

// The following line of code may cause problems.
// It fetches the database to find the largest image number.
Expand Down

0 comments on commit 08ec6af

Please sign in to comment.