Ok guys and gals I have a code that works, and now I am looking for constructive comments.
++++++++++++++++here's the code++++++++++++++++++++++++++++
<?php require_once('Connections/SkateEvents.php'); ?>
<?php
include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
<?php
$maxRows_allevents = 5;
$pageNum_allevents = 0;
if (isset($_GET['pageNum_allevents'])) {
$pageNum_allevents = $_GET['pageNum_allevents'];
}
$startRow_allevents = $pageNum_allevents * $maxRows_allevents;
mysql_select_db($database_SkateEvents, $SkateEvents);
$query_allevents = "SELECT * FROM events ORDER BY `Date` ASC";
$query_limit_allevents = sprintf("%s LIMIT %d, %d", $query_allevents, $startRow_allevents, $maxRows_allevents);
$allevents = mysql_query($query_limit_allevents, $SkateEvents) or die(mysql_error());
$row_allevents = mysql_fetch_assoc($allevents);
if (isset($_GET['totalRows_allevents'])) {
$totalRows_allevents = $_GET['totalRows_allevents'];
} else {
$all_allevents = mysql_query($query_allevents);
$totalRows_allevents = mysql_num_rows($all_allevents);
}
$totalPages_allevents = ceil($totalRows_allevents/$maxRows_allevents)-1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Events Page</title>
</head>
<body>
<table width="800" border="1" align="center" cellpadding="5" cellspacing="5">
<tr>
<td width="82"><div align="center">Date</div></td>
<td width="136"><div align="center">Events</div></td>
<td width="124"><div align="center">Host</div></td>
<td width="177"><div align="center">More info</div></td>
<td width="34"><div align="center">Host id</div></td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_allevents['Date']; ?></td>
<td><?php echo $row_allevents['Events']; ?></td>
<td><?php echo $row_allevents['Host']; ?></td>
<td><a target="_blank" href="http://sk8photos.com/xoop/html/modules/page/images/flyers/"><?php echo $row_allevents['More info']; ?>Click Here</a></td>
<td><?php echo $row_allevents['Host id']; ?></td>
</tr>
<?php } while ($row_allevents = mysql_fetch_assoc($allevents)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($allevents);
include(XOOPS_ROOT_PATH."/footer.php");
?>
+++++++++++++++++++++end code++++++++++++++++++++++++++++++
I had to load the page up in the directory xoops/html/show_records.php I will have to tweak the page and refer to the css file with in the theme but how will I like the page to the navigation to make it look all the same. I also need to fix the link so that each link will point to a flyer.
View results hereThanks guys.