I am trying to display all the info in the table but when I query the information then put it into a PHP table it doesn't show any data in the last table.

Here is my PHP code for the table
     <table border='1'>
        <tr>
            <th>Ticket ID</th>
            <th>Username</th>
            <th>Message</th>
            <th>Date</th>
            <th>Error #</th>
            <th>Priority</th>
        </tr>
        <?php
        if(!$query){
            die('Invalid query: ' .mysql_error());
        }
        while ($row = mysql_fetch_array($query)) { ?>
            <tr>
                <td><?php echo $row['TicketID']; ?></td>
                <td><?php echo $row['Message']; ?></td>
                <td><?php echo $row['Date']; ?></td>
                <td><?php echo $row['Error']; ?></td>
                <td><?php echo $row['Priority']; ?></td>
            </tr>
        <?php } ?>
    </table>
Here is the PHP code for query
<?php
$server = mysql_connect("localhost", "root", "**password**");
$db = mysql_select_db("minecraft", $server);
$query = mysql_query("SELECT * FROM tickets");
?>
All of my row names are correct but it doesn't want to put the data into that column.

 
    