Retrieving data from database gives error
<p>Can anyone help me with this? My code won't run and I can't figure out why not.</p>

<pre><code>    &lt;?php
include('connect-db.php');


 if (isset($_GET['naam']))
 {
 // query db
 $naam = $_GET['naam'];
 $result = mysql_query("SELECT * FROM planten WHERE naam=$naam")
 or die(mysql_error()); 
 $row = mysql_fetch_array($result);


 if($row)
 {
 // get data from db
 $cat = $row['cat'];
 $mintemp = $row['mintemp'];
 $uitleg = $row['uitleg'];
 $img = $row['img'];

 }
 }



?&gt;
</code></pre>

<p>The connection is working and active, and the database name &amp; row names are correct.</p>