Location: PHPKode > projects > PHP Gateway > e-comm/catalog/resultage.php
<style>
.me
{
	background-color:lightgrey;
	border:2px outset gray;
}
.n
{
	cursor:pointer;
	width:50px;
}
</style>


<b><big>Product Wizard</big><br>
Finish!</b><br>You have sucessfully added a product to the database, and it is now ready to buy.<br>Below is a preview of
what your product will look like in the catalog.<br><br>

<table width="700" class='me' border=1;>

<?
$rik = implode("|", $_POST[duce]);
require("../inf.php");
mysql_connect("$host", "$user", "$pass	");
mysql_select_db("sportplus");
mysql_query("INSERT INTO product (prodname, shortdesc, longdesc, thumb, full, brand, chargeshipping, pricat, subcat, prodcode, price, colorVariations, sizes, cost, sport) VALUES ('".$_POST[prodname]."', '".$_POST[shortdesc]."', '".$_POST[longdesc]."', '".$_POST[thumb]."', '".$_POST[full]."', '".$_POST[brand]."', '".$_POST[chargeshipping]."', '".$_POST[pricat]."', '".$_POST[subcat]."', '".$_POST[prodcode]."', '".$_POST[productprice]."', '".$_POST[colorvar]."', '$rik', '".$_POST[cost]."', '".$_POST[sport]."')");

$mikrik = explode("|", $rik);

print("<tr><td><a href='Overview.php?query=".$_POST[prodcode]."'><b>".$_POST[prodname]."</b></a> - <small>".$_POST[prodcode]."</b><br></td><td><b>Price</b></td></tr>");
print("<tr><td><div style='background-color:#EEEEEE;'>".$_POST[shortdesc]."<br>
<small>Available in sizes:");

foreach($mikrik as $dik)
{
	print $dik;
	print " ";
}
print("</small><br>");
?>
<b><font color=blue><div onclick="window.open('preview.php?prev=<? print("$_POST[prodcode]"); ?>','Greetz','width=700,height=500,left=10,top=10,screenX=0,screenY=0, resizable=yes')" class="n">Preview</div>
</b></font>
<?
print("</td><td valign='middle'><b><font color=blue>$".$_POST[productprice]."<br></font></b></div></td></tr>");
?>
</table>
Return current item: PHP Gateway