{source}
<?php require_once(‘Connections/baglan.php’); ?><?php
$maxRows_DetailRS1 = 20;
$pageNum_DetailRS1 = 0;
if (isset($_GET[‘pageNum_DetailRS1’])) {
$pageNum_DetailRS1 = $_GET[‘pageNum_DetailRS1’];
}
$startRow_DetailRS1 = $pageNum_DetailRS1 * $maxRows_DetailRS1;
mysql_select_db($database_baglan, $baglan);
$recordID = $_GET[‘recordID’];
$query_DetailRS1 = “select * from sanal1 WHERE alias = “.”‘”.$recordID.”‘”.”union select * from sanal2 WHERE alias = “.”‘”.$recordID.”‘”.”union select * from sanal3 WHERE alias = “.”‘”.$recordID.”‘”;
$query_limit_DetailRS1 = sprintf(“%s LIMIT %d, %d”, $query_DetailRS1, $startRow_DetailRS1, $maxRows_DetailRS1);
$DetailRS1 = mysql_query($query_limit_DetailRS1, $baglan) or die(mysql_error());
$row_DetailRS1 = mysql_fetch_assoc($DetailRS1);
if (isset($_GET[‘totalRows_DetailRS1’])) {
$totalRows_DetailRS1 = $_GET[‘totalRows_DetailRS1’];
} else {
$all_DetailRS1 = mysql_query($query_DetailRS1);
$totalRows_DetailRS1 = mysql_num_rows($all_DetailRS1);
}
$totalPages_DetailRS1 = ceil($totalRows_DetailRS1/$maxRows_DetailRS1)-1;
?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
</head>
<body>
<table border=”1″ align=”left” class=“contentpaneopen“ cellpadding=“2“ cellspacing=“2“>
<tr><td><?php echo $row_DetailRS1[‘title’]; ?> </td></tr>
<tr><td><?php echo $row_DetailRS1[‘introtext’]; ?> </td></tr>
<tr><td><?php echo $row_DetailRS1[‘description’]; ?> </td></tr>
</table>
</body>
</html><?php
mysql_free_result($DetailRS1);
?>
{/source}