My $result will not return the value of it's self. I can't figure out why and I definetly don't want to have to setup variables to display each and every piece of data. That would take a very long time especially because this is a very large database. I know what each column represents so there's no reason to need to label them right?
$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>");
if($result[$row][$column] != ""){
echo $result[$row][$column];
} else {
echo("<br>");
}
echo("<td>");
}
echo("<tr>");
}