-
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 86ba8c2 according to the output from php-cs-fixer. Details: https://deepsource.io/gh/davidbelfiori/JobInt/transform/5d8a59b8-37d1-49c6-ae60-a184d383f13f/
- Loading branch information
1 parent
86ba8c2
commit 5da13d9
Showing
16 changed files
with
250 additions
and
273 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
Oops, something went wrong.