# Missing something...not sure what

**URL:** <https://forum.kirupa.com/t/missing-something-not-sure-what/237466>\
**Category:** Uncategorized\
**Created:** [August 30, 2007, 4:17pm UTC](https://forum.kirupa.com/t/missing-something-not-sure-what/237466 "2007-08-30T16:17:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonhardwick](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Post date:** [August 30, 2007, 4:17pm UTC](https://forum.kirupa.com/t/missing-something-not-sure-what/237466/1 "2007-08-30T16:17:02Z")

</div>

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

```php

<?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();
?>

```
