well...
its not usually my practice to echo() a bunch of html - that just makes for a messy string to try to ensure all quotes are closed.
i would first start by printing out the row to make sure you mysql statements are correct:
while ($row = mysql_fetch_row ($result, MYSQL_ASSOC))
{
print "<pre>";
print_r ($row);
print "</pre>";
}
once you are sure all the database guts are working i would, instead of one big echo statement, escape from PHP to type your html like this:
while ($row = mysql_fetch_row ($result, MYSQL_ASSOC))
{
?>
<table width=80%>
<tr><td>
<b>Ticket Number
<? echo $row['ticket_nuim']; ?>
</b><br>
Requested Priority: <? echo $row['priority']; ?>
..
..
..
<?
}
?>
note the in line php statements. This is my method, other people would disagree, its a matter of option.
its just that it sounds like that big echo statement is causing you the problem. The best way to debug is to break things down into small chunks - go slowly and don't try to do every at once.