diff --git a/gw-create.php b/gw-create.php index 71aa505..66bd07f 100644 --- a/gw-create.php +++ b/gw-create.php @@ -16,10 +16,10 @@ if ($createnew === "1"){ $bdate = mysqli_real_escape_string($con, $_POST['bdate']); $profid = mysqli_real_escape_string($con, $_POST['professionid']); function getColor() { - return array("#DDD", "#FF8", "#CF9", "#ACF", "#9FC", "#DAF", "#FBB", "#FCE", "#BFF", "#FC9", "#DDF"); + return array("#FFF", "#DDD", "#FF8", "#CF9", "#ACF", "#9FC", "#DAF", "#FBB", "#FCE", "#BFF", "#FC9", "#DDF"); } $profcolor = getColor()[$profid]; - echo 'profession color is ' . $profcolor . '!'; + echo 'profession color is ' . $profcolor . ' due to profid being ' . $profid . '!'; list ($y, $m, $d) = explode('-', $bdate); if (!checkdate($m, $d, $y)) { echo 'Date is invalid ' . $bdate . '
';