-
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 956f20a according to the output from php-cs-fixer. Details: https://deepsource.io/gh/davidbelfiori/JobInt/transform/e87ccc07-a20b-423f-ac3f-d9f555ace1a9/
- Loading branch information
1 parent
956f20a
commit 3050f7b
Showing
18 changed files
with
256 additions
and
291 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.