public function Showtable() {
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')
{
$postProject=$_POST['project'];
$postVersion=$_POST['versions'];
$query2= "query che mi seleziona i campi tabella
where bl.version = '$_POST[progetto]' and pl.ProjectKey = '$_POST[version]'";
$result2 = mysql_query($query2);
$numero_righe=mysql_num_rows($result2);
if($numero_righe==0)
{
echo "<br>";
echo "<b><br><font color='red'>No issues for this project or / and this version</font></b>";
}
else
{
echo "<b><br><font color='#00C200'>The issues found are:</font></b><br>";
echo "<table ID='table' border='1' bgcolor='white' align='center'><TR><TH align='center'>Plan</TH><TH align='center'>Project</TH><TH align='center'>Build Type</TH><TH align='center'>Version</TH><TH align='center'>Issue Key</TH><TH align='center'>Issue Type</TH><TH align='center'>Issue Summary</TH></TR>";
while($riga= mysql_fetch_array($result2))
{
echo "<TR><TD align='center'>".$riga["plan"]."</TD>"."<TD align='center'>".$riga["project"]."</TD>"."<TD align='center'>".$riga["BuildType"]."</TD>"."<TD align='center'>".$riga["Version"]."</TD>"."<TD align='center'>".$riga["IssueKey"]."</TD>"."<TD align='center'>".$riga["IssueType"]."</TD>"."<TD align='center'>".$riga["IssueSummary"]."</TD>";
}
echo "</table>";
echo "<br>";
}
}
}