Location: PHPKode > projects > Kwik Kart > kksm.php
<script>
<!--
function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=yes, resizable=no');
 win.resizeTo(w, h);
 win.focus();
}
// -->
</script> 

<?php
include ('connect.php');
$result2 = mysql_query("SELECT * FROM products") 
or die(mysql_error());

while($row2 = mysql_fetch_array( $result2)) {
$Summery=$row2['Summery'];
$Summery=substr($Summery,0,102);
$Name=$row2['Name'];
$Number=$row2['Number'];

echo "
<strong><a href=\"KK/kkdetail.php?Number=$Number\" target=\"_blank\" style=\"color:#$Lcol;\" onClick=\"wopen('KK/kkdetail.php?Number=$Number', 'popup', 640, 480); return false;\">$Name</a>
<br>
$Summery ...
<p><hr>
";
}

?>
Return current item: Kwik Kart