Skip to content

Commit

Permalink
Update upload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nihr43 authored Dec 3, 2016
1 parent adcc565 commit fab2c56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
if (isset ($_GET["error"]))
{
echo '<div class="alert alert-danger" id="alertbad">';
echo '<strong>Success!</strong> {$_GET["error"]}.';
echo "<strong>Error!</strong> {$_GET['error']}";
echo '</div>';
}
else if (isset ($_GET["success"]))
else if (isset ($_GET['success']))
{
if ($_GET["success"] >= 1)
if ($_GET['success'] >= 1)
{
$s = "s"; //if plural
}
echo '<div class="alert alert-success" id="alertgood">';
echo '<strong>Success!</strong> {$_GET["success"]} file{$s} uploaded.';
echo "<strong>Success!</strong> {$_GET['success']} file{$s} uploaded.";
echo '</div>';
}

Expand Down

0 comments on commit fab2c56

Please sign in to comment.