OK....here's the code for the first page..
<?php require_once('Connections/load.php'); ?>
<?php
mysql_select_db($database_load, $load);
$query_Recordset1 = "SELECT * FROM loaded_theatres WHERE location = 'downtown'";
$Recordset1 = mysql_query($query_Recordset1, $load) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="get" action="show.php">
<select name="varselect" id="varselect" title="<?php echo $row_Recordset1['theatre']; ?>">
<?php
do {
?>
<option value="<?php echo $row_Recordset1['theatre']?>"<?php if (!(strcmp($row_Recordset1['theatre'], $HTTP_GET_VARS['id']))) {echo "SELECTED";} ?>><?php echo $row_Recordset1['theatre']?></option>
<?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>
</select>
<input type="submit" name="Submit" value="submit">
<?php echo $HTTP_GET_VARS['id']; ?>
</form>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
and the details page...
<?php require_once('Connections/loade.php'); ?>
<?php
$maxRows_Recordset2 = 1;
$pageNum_Recordset2 = 0;
if (isset($HTTP_GET_VARS['pageNum_Recordset2'])) {
$pageNum_Recordset2 = $HTTP_GET_VARS['pageNum_Recordset2'];
}
$startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2;
mysql_select_db($database_loade, $loade);
$query_Recordset2 = "SELECT * FROM loaded_theatres";
$query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2);
$Recordset2 = mysql_query($query_limit_Recordset2, $loade) or die(mysql_error());
$row_Recordset2 = mysql_fetch_assoc($Recordset2);
if (isset($HTTP_GET_VARS['totalRows_Recordset2'])) {
$totalRows_Recordset2 = $HTTP_GET_VARS['totalRows_Recordset2'];
} else {
$all_Recordset2 = mysql_query($query_Recordset2);
$totalRows_Recordset2 = mysql_num_rows($all_Recordset2);
}
$totalPages_Recordset2 = ceil($totalRows_Recordset2/$maxRows_Recordset2)-1;
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="1">
<tr>
<td>id</td>
<td>theatre</td>
<td>location</td>
<td>address</td>
<td>phone</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset2['id']; ?></td>
<td><?php echo $row_Recordset2['theatre']; ?></td>
<td><?php echo $row_Recordset2['location']; ?></td>
<td><?php echo $row_Recordset2['address']; ?></td>
<td><?php echo $row_Recordset2['phone']; ?></td>
</tr>
<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset2);
?>