Pass Variable Through An Image Hyperlink?
<p>how do i hyperlink an image and also pass a variable through it as well? my incorrect code is as follows:</p>

<pre><code>    &lt;?php
            $result=mysql_query("select serial, name, price from products ORDER BY RAND() LIMIT 3");
            while($row=mysql_fetch_array($result))
            {
                echo '&lt;a href="searchedproduct.php?product_id=&lt;?=$row['serial']?&gt;"&gt;&lt;img src="getImage.php?id=' . $row['serial'] .'"/&gt;&lt;/a&gt;'.'&amp;nbsp;'.'&amp;nbsp;';
}

echo "&lt;/tr&gt;";
echo "&lt;/table&gt;";
?&gt;
</code></pre>

<p>thanks for any help guys</p>
