Missing something...not sure what

can anyone see what is wrong with this code im sure there is more than one problem.


<?php
mysql_connect("localhost", "username", "password") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());
$query = 'select * from press order by date desc limit 20, 1000';
or die(mysql_error());
   $title = 'title';
   $date = 'date';
   $body = 'body';
   $cover = 'cover' ? '<img src="' . 'cover' . '">' : '';
 
print <<<EOHTML
  <tr>
    <td align="left" valign="top"><p><b>$title</b><br />$date</p>
      <p>$cover</p></td>
    <td><p>$body</p></td>
  </tr>
  <tr>
    <td height="20">&nbsp;</td>
    <td><hr /></td>
  </tr>
EOHTML;
mysql_close();
?>