-
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 6894e83 according to the output from php-cs-fixer. Details: https://deepsource.io/gh/davidbelfiori/JobInt/transform/2859ae3e-d2e5-4adf-8767-e22297fde08d/
- Loading branch information
1 parent
6894e83
commit a68f41c
Showing
20 changed files
with
315 additions
and
361 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
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.