Some error in my mysql_fetch_assoc
<p>I am trying to create a rumour-based website. In one part of the site, there is a working feature where you are post rumours and the rumours are shown.</p>

<p>But i am working on the homepage so that the two latest rumours are placed into a table. With my code below, there is a table with no rows, despite data being in the mysql table, and this error message: </p>

<blockquote>
  <p>Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /websites/123reg/LinuxPackage22/th/eq/li/theqlick.com/public_html/leeds.php on line 212</p>
</blockquote>

<p>Any idea? My code is below:</p>

<pre><code>$query = "SELECT * FROM rumour ORDER BY id DESC";
$row = mysql_fetch_assoc($query); 
$id = $row['id'];
$name = $row['name'];
$description = $row['description'];

echo "&lt;table class ='rumour' border='1'&gt;";
echo "&lt;tr&gt;";
echo "&lt;td style = 'font-size:18pt;font-family:Noteworthy-Bold;'&gt; Hot Rumours  &lt;/td&gt;";
echo "&lt;tr&gt;";
echo "&lt;td class = 'td1'&gt;". text2link($row['description']). "&lt;/td&gt;";
echo "&lt;/tr&gt;";
echo "&lt;tr&gt;";
echo "&lt;td class = 'td1'&gt;". text2link($row['description']). "&lt;/td&gt;";
echo "&lt;/tr&gt;";
echo "&lt;/table&gt;";
</code></pre>
