this is the code that calls the pop up window.
<a onclick="NewWindow('product_infonew.php?products_id=5676&type=&ac=2gvs0ewjeuatis2006hoqgf', 'width=500,height=400')" style="cursor: pointer;"><img src="../images/small_view.gif" width="49" height="15" border=0 alt=""></a>
this is the code in the popup window.. i removed the display code..
<?php
ob_start("ob_gzhandler");
require('inc_database.php');
require('inc_settings.php');
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="functions.js"></script>
<script language="javascript"><!--
function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=550,height=500,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>
<body onload="this.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="top" align="center" bgcolor="#ffffff">
<?
$product_info_query = "select * from products where products_id = '123'";
$rs = mysql_query($product_info_query);
$product_info = mysql_fetch_array($rs);
$numrows = mysql_num_rows($rs);
$to_replace = array('\\', '\'', '\"', '/');
$country = str_replace($to_replace, "-", $product_info['fldNameCountry']);
$city = str_replace($to_replace, "-", $product_info['fldNameCity']);
if ($numrows < 1) {
echo 'none found';
} else {
mysql_query("update products_description set products_viewed = products_viewed+1 where products_id = '" . (int)$_GET['products_id'] . "'");
//display record info
}
?>
</td>
</tr>
</table>