-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes the style issues introduced in 66bd4c6 according to the output from php-cs-fixer. Details: https://deepsource.io/gh/davidbelfiori/JobInt/transform/948982e4-e09d-4a1f-bc85-16799cbf900a/
- Loading branch information
1 parent
66bd4c6
commit d9fe393
Showing
17 changed files
with
246 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
<?php | ||
|
||
//fetchdata.php | ||
if(isset($_POST["action"])) | ||
{ | ||
if (isset($_POST["action"])) { | ||
$conn = mysqli_connect("localhost", "root", "root", "jobint"); | ||
$output = ''; | ||
if($_POST["action"] == "Area_professionale") | ||
{ | ||
if ($_POST["action"] == "Area_professionale") { | ||
$query = "SELECT sotto_area FROM jobint.categoriaprofessionale WHERE area = '".$_POST["query"]."' GROUP BY sotto_area"; | ||
$result = mysqli_query($conn, $query); | ||
$output .= '<option value="">Select Sotto area</option>'; | ||
while($row = mysqli_fetch_array($result)) | ||
{ | ||
while ($row = mysqli_fetch_array($result)) { | ||
$output .= '<option value="'.$row["sotto_area"].'">'.$row["sotto_area"].'</option>'; | ||
} | ||
} | ||
if($_POST["action"] == "Sotto_area_professionale") | ||
{ | ||
if ($_POST["action"] == "Sotto_area_professionale") { | ||
$query = "SELECT categoria FROM jobint.categoriaprofessionale WHERE sotto_area= '".$_POST["query"]."'"; | ||
$result = mysqli_query($conn, $query); | ||
$output .= '<option value="">Select categoria</option>'; | ||
while($row = mysqli_fetch_array($result)) | ||
{ | ||
while ($row = mysqli_fetch_array($result)) { | ||
$output .= '<option value="'.$row["categoria"].'">'.$row["categoria"].'</option>'; | ||
} | ||
} | ||
echo $output; | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,3 @@ | |
session_destroy(); | ||
|
||
header("Location: index.php"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.