Think I got it figured out. Or at least I found a way that it works. Whether there is an easier and less space wasting way I don’t know but heres what I got:
<?php
// listing script
// connect to the server
mysql_connect( '208.179.***.***', '******', '********' )
or die( "Error! Could not connect to database: " . mysql_error() );
// select the database
mysql_select_db( '******' )
or die( "Error! Could not select the database: " . mysql_error() );
// get the id from the URL request
$id = $_REQUEST['id'];
// retrieve the row from the database
$query = "SELECT * FROM `Classmates` WHERE `id`=1995030";
$result = mysql_query( $query );
// print out the results
if( $result && $contact = mysql_fetch_object( $result ) )
{
// print out the info
$lastname = $contact -> lastname;
$address = $contact -> address;
$work = $contact -> work;
$email = $contact -> email;
?>
<div align="left">
<img border="0" src="../../structure/npa.gif" width="118" height="150" align="left"><table border="1" cellpadding="2" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#FFF9F9" width="400" align="left" style="text-align: left">
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Name:</th>
<td align="left" height="30"><font color="#800000"><?php echo($lastname) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="15" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"> </th>
<td align="left" height="15"> </td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Location:</th>
<td align="left" height="30"><font color="#800000"><?php echo($address) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Occupation:</th>
<td align="left" height="30"><font color="#800000"><?php echo($work) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
E-Mail:</th>
<td align="left" height="30"><font color="#800000"><?php echo($email) ?></font></td>
</tr>
</table>
<?php
}
else
{
die( "Error: Could not get contact from database. ".mysql_error() );
}
?>
<?php
// retrieve the row from the database
$query = "SELECT * FROM `Classmates` WHERE `id`=1995035";
$result = mysql_query( $query );
// print out the results
if( $result && $contact = mysql_fetch_object( $result ) )
{
// print out the info
$lastname = $contact -> lastname;
$address = $contact -> address;
$work = $contact -> work;
$email = $contact -> email;
?>
<div align="left">
<img border="0" src="../../structure/npa.gif" width="118" height="150" align="left"><table border="1" cellpadding="2" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#FFF9F9" width="400" align="left" style="text-align: left">
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Name:</th>
<td align="left" height="30"><font color="#800000"><?php echo($lastname) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="15" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"> </th>
<td align="left" height="15"> </td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Location:</th>
<td align="left" height="30"><font color="#800000"><?php echo($address) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
Occupation:</th>
<td align="left" height="30"><font color="#800000"><?php echo($work) ?></font></td>
</tr>
<tr>
<th align="left" width="94" height="30" bgcolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
E-Mail:</th>
<td align="left" height="30"><font color="#800000"><?php echo($email) ?></font></td>
</tr>
</table>
<?php
}
else
{
die( "Error: Could not get contact from database. ".mysql_error() );
}
?>
_____________________________-
Only small problem now is the file size. A page with 128 of these tables was 375KB. Reediting some of the graphics while getting rid of a few others and I got it down to 290KB. Thinking I can trim some more by taking out the // references. Good thing is that most of the graduating classes had about 35-45 students so very few will have 100 or more.