-
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 10f6184 according to the output from php-cs-fixer. Details: https://deepsource.io/gh/davidbelfiori/JobInt/transform/b2e90ef4-cdcc-4696-b446-f47fc2c8e3d7/
- Loading branch information
1 parent
10f6184
commit 22f0af0
Showing
14 changed files
with
216 additions
and
241 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
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
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.