Location: PHPKode > projects > PHP Gateway > e-comm/catalog/preview.php
<?
if($_GET[prev])
{
require("../inf.php");
mysql_connect("$host", "$user", "$pass	");
	mysql_select_db("sportplus");
	$result = mysql_query("SELECT * from product WHERE prodcode = '".$_GET[prev]."'");

	if($row = mysql_fetch_array($result))
	{
		do
		{
			print("<img src='".$row[thumb]."' alt='image'>");
		}while($row = mysql_fetch_array($result));
	}
}
?>
Return current item: PHP Gateway