Well, first you should debug your query. You have the error suppressor (@) on the mysql_query() call. Since you're having problems... you don't want to suppress ANY errors, so remove that.
In fact, to make sure we're getting the whole picture, add the ' or die(mysql_error());' bit on to the end of your mysql_query() call.
Also... that's an odd way to retrieve data from a query... why not simply do:
$rs = mysql_query( $sql,$conn) or die(mysql_error());
// TABLE HEADER echo( "<table ..ETC
while( $row = mysql_fetch_array( $rs ) ) {
$commandID=$row["commandID"];
echo '<tr><td><font size="2" face="Verdana"> . $commandID . </td></tr>';
}