Latest bugs filed for ' . $product . "\n\n"; $id = "bug_id"; $desc = "short_desc"; $res = "resolution"; $table = "bugs"; $target = "product"; if (!isset($amount)) $amount = 10; $bug_url = "http://" . HOST . "/bugs/show_bug.cgi?id="; $component = 'component'; if ( !isset($bug_component) ) $bug_component[0] = ''; for ($j=0; $j < count($bug_component); ++$j) { $query = " SELECT $id, $desc, $component, $res FROM $table WHERE $target='$product' AND $component LIKE '%" . $bug_component[$j] . "%' ORDER BY $id DESC LIMIT $amount "; $my_result = mysql_query($query, $connect); $e = mysql_error(); if($e) print "ERROR:latest_bugs: $e"; $row = mysql_num_rows($my_result); print '

' . mysql_result($my_result, 0, $component) . "

\n"; print '' . "\n"; print "\n\n"; print ''; // print '' . "\n\n"; print '' . "\n\n"; print "\n\n"; print "\n"; for($i=0; $i<$row; $i++) { $printstrike = false; print "\n\n\n\n\n"; } print "\n"; print "
Bug #ComponentDescription
\n"; $bug_id = mysql_result($my_result, $i, $id); $strike = mysql_result($my_result, $i, $res); if ($strike == "FIXED" || $strike == "INVALID" || $strike=="DUPLICATE") $printstrike = true; if ($printstrike) print ""; print ""; print $bug_id; print ""; if ($printstrike) print ""; print "\n\n"; // print htmlspecialchars ( mysql_result($my_result, $i, $component),ENT_QUOTES); // print mysql_result($my_result, $i, $component); // print "\n\n"; print htmlspecialchars ( mysql_result($my_result, $i, $desc),ENT_QUOTES); print "
\n"; } ?>