Unfortunately both arrays are not the same size which is why I had to perform the operation I was performing. I have solved the problem though. Here is the code that fixed all my problems.
$db_name = "issues";
$table_name = "issue_log";
$connection = @mysql_connect("localhost", "root", "") or die("Couldn't connect.");
$db = @mysql_select_db($db_name,$connection) or die("Couldn't select database.");
$sql = "SELECT * FROM $table_name";
$result = @($sql,$connection);
$num = @mysql_num_rows($result);
for($row=0; $row < $num; $row++){
//Table to display results. Short Form.
echo("<tr>");
for($column=0; $column<22; $column++){
echo("<td valign='top'>");
if(mysql_result($result,$row,$column) != ""){
echo mysql_result($result,$row,$column);
} else {
echo("<br>");
}
echo("</td>");
}
echo("</tr>");
}