Stolzyboy: Okay, taking a look at your previous posting, I tried the following and here is the page:
http://www.lithuaniangenealogy.org/test/surnametest.php
Errors out on line 100 (last line of file):
Here is all the code:
<title>Surname Database</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<font size="5"><strong></strong></font>
<table width="670" border="0" align="center">
<tr>
<td>
<div align="center"> <font size="5"><strong></strong></font>
<table width="670" border="" align="center" cellpadding="5">
<tr>
<td width="639" height="171" valign="top">
<table width="100%" border="0">
<tr>
<td width="75%" height="154">
<div align="left"><img src="../databases/images/tree.gif" width="80" height="83" align="left"><font size="5"><strong><em>Surnames</em></strong></font><br>
Website/Database design by: <a href="mailto:webmaster@lithuaniangenealogy.org">Richard
Gostautas</a><br>
<br>
<center>
All databases are copyrighted © 1999-2003 by LGGS.
<br>
Commercial use or reproduction in any form is <strong>strictly
prohibited.</strong></center> </div></td>
<td width="25%"><div align="center"><img src="../databases/images/hanna.jpg" width="99" height="151"></div></td>
</tr>
</table>
</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="159">
<center>
<hr>
<br>
<hr width="75%">
<br>
<?php
include("../../includes/lithparishes.inc");
$dbh=@mysql_connect ("$dbhost", "$dbuser", "$dbpass") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("$dbname");
$qrySurname__letter = "%";
// Output letters as links: (Ascii range from 65 to 90 are letters A to Z!)
// Trying to do this automatically without having to resort to hand coding // of every single link
for($x=65;$x<=90;$x++)
{
if ($x==ord($subsel)) echo "<b>".chr($x)."</b>";
else
echo "<a href=\"surnametest.php?letter=".chr($x)."\">".chr($x)."</a> ";
}
$letter = $_GET["letter"];
if (isset($letter))
{
$qrySurname = "SELECT * FROM surnames WHERE surname LIKE '$letter%'";
} else {
$qrySurname = "SELECT * FROM surnames ORDER BY surname";
}
$result = mysql_query($qrySurname);
$i = 1;
?>
<TABLE BORDER=1 cellpadding=5 align="center"><tr>
<?
while ($row = mysql_fetch_array($result))
{
$j = $i % 30;
if ($j == 0){
?>
<td width="25%" align="center" valign="top">
<A HREF="mailto:<? echo $row["email"]; ?>"><? echo $row["surname"]; ?></a>
</td>
</tr>
<tr>
<?
}
else {
?>
<td width="25%" align="center" valign="top">
<A HREF="mailto:<? echo $row["email"]; ?>"><? echo $row["surname"]; ?></a>
</td></tr>
<?
}
$i++;
{
?>
</table>
</p>
<table width="75%" border="0" align="center">
<tr>
<td><div align="center"><a href="#">Top</a> | <a href="../databases/index.html">Back
</a>to Database Main Page</div></td>
</tr>
</table>
<p align="center">If you have a database or information that you would like
to put into our database, that pertains to Lithuanian genealogy, please
contact us at <a href="mailto:webmaster@lithuaniangenealogy.org">webmaster@lithuaniangenealogy.org</a></p>
I tried looking to make sure everything is closed out - which it looks to be, but I am thinking there might be something wrong when calling the $row surname and email.
What do you think?
Thanks!
P.S. Want to get the pulling of the information out into 4 columns with a max of 30 rows per column before I begin to pull out valid/nonvalid images.