still doesnt work, well here is the whole code. if that is what you ment by posting code online.
<?php
include("include/common.php");
global $conn,$config;
include("../templateseller/include/main.php");
include("../templateseller/template/onlyheader.php");
include("../templateseller/template/onlysearch.php");
?>
<script language="javascript">
function MM_openBrWindow(theURL,winName) { //v2.0
window.open(theURL,winName,'width=400,height=400 ,status=no,location=no,buttons=0,scrollbars=yes');
}
function MM_openBrWindow2(theURL,winName) { //v2.0
window.open(theURL,winName,'width=400,height=450 ,status=no,location=no,buttons=0,scrollbars=yes');
}
</script>
<?php
$fontb="<font size=\"3\" color=\"0044FF\"><b>";
$fonte="</b></font>";
$fontb2="<font size=\"3\" color=\"A2A4FF\"><b>";
$fonte2="</b></font>";
if($tempid=="")
{
header("Location:index.php");
}
else
{
$sql="Select * from templates where ID=$tempid";
$recordset=$conn->Execute($sql);
$sql="SELECT * from general where gID=$tempid";
$recordset2=$conn->Execute($sql);
$sql="SELECT * from templatefiles where tID=$tempid";
$recordset3=$conn->Execute($sql);
$type=$recordset->fields[type];
$category=$recordset->fields[catname];
$download=$recordset->fields[soldcount];
$author=$recordset2->fields[author];
$format=$recordset2->fields[format];
$uprice=$recordset2->fields[uprice];
$price=$recordset2->fields[price];
$isflash=$recordset2->fields[isflash];
$front=$config[template_upload_url]."/".$tempid."/".$recordset3->fields[frontimage];
$content=$config[template_upload_url]."/".$tempid."/".$recordset3->fields[contentimage];
$swf=$config[template_upload_url]."/".$tempid."/".$recordset3->fields[swffile];
$thumb=$config[template_upload_url]."/".$tempid."/".$recordset3->fields[thumbfile];
}
?>
<table width="100%" border="0" cellspacing="0" valign="top">
<tr>
<td width="60%" align="left">
<table width="100%" border="0" cellspacing="0">
<?php
if($isflash==Yes)
{
echo "<tr><td align='left'><b>The Page In Flash</b></td></tr>";
echo "<tr><td>";
echo "<object classid=\"clsid😃27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"400\" height=\"200\">
<param name=movie value=\"$swf\">
<param name=quality value=high><param name=\"LOOP\" value=\"false\">
<embed src=\"$swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"400\" height=\"200\" loop=\"false\">
</embed>
</object>
</td></tr>";
}
?>
<tr>
<td align="left"><b>The FronPage In PSD</b></td>
</tr>
<tr>
<td align="left"><img src="<?php echo "http://".$_SERVER['HTTP_HOST']."templateseller/".$front; ?>">
</tr>
<tr>
<td align="left"><b>The Content Page In PSD</b></td>
</tr>
<tr>
<td align="left"><img src="<?php echo "../templateseller/$content"; ?>">
</tr>
</table>
</td>
<td width="40%" align="left" cellspacing="0" bgcolor="f2f2f2" valign="top">
<table width="100%" border="0" cellspacing="0" bgcolor="f2f2f2">
<?php
echo "<tr valign='top'>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td COLSPAN='2' ALIGN='left'><b><br><br><br>General Info</b></td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Template ID: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $tempid $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Author: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $author $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Category: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $category $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Template Type: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $type $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Format: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $format $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Unique Price: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $uprice (USD) $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Price: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 $price (USD) $fonte2</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Buy It: $fonte</td>";
$buygeneral="<a href=\"#\" onClick=\"MM_openBrWindow2('buy.php?tempid=$tempid&type=general','')\">$fontb \$$price $fonte</a>";
$buyunique="<a href=\"#\" onClick=\"MM_openBrWindow2('buy.php?tempid=$tempid&type=unique','')\">$fontb \$$uprice $fonte</a>";
echo "<td width=\"45%\" align=\"left\"><br> $fontb2 For $buygeneral (USD)</a>$fonte2<br>This is general price, The template will still remain in our site</td>";
echo"</tr>";
echo "<tr>";
echo "<td width=\"15%\" align=\"left\"> </td>";
echo "<td width=\"40%\" align=\"left\"><br>$fontb Buy It: $fonte</td>";
echo "<td width=\"45%\" align=\"left\"><br>$fontb2 For $buyunique (USD)</a>$fonte2<br>This is Unique price, The template will be removed from the site</td>";
echo"</tr>";
?>
</table>
</td>
</tr>
</table>
<?php
include("../templateseller/template/onlyfooter.php");
?>