vicpal25
01-27-2005, 05:08 PM
Hello!
I am having determening on where to place a top anchor for the following directory listing
while(odbc_fetch_row($result))
{
$title=odbc_result($result,1);
$firstname =odbc_result($result,2);
$middlename=odbc_result($result,3);
$lastname=odbc_result($result,4);
$position=odbc_result($result,5);
$positiondesc=odbc_result($result,6);
$orgname=odbc_result($result,7);
$address1=odbc_result($result,8);
$address2=odbc_result($result,9);
$city=odbc_result($result,10);
$state=odbc_result($result,11);
$zip=odbc_result($result,12);
$phonetype1=odbc_result($result,13);
$phonenumber1=odbc_result($result,14);
$phonetype2=odbc_result($result,15);
$phonenumber2=odbc_result($result,16);
$email1=odbc_result($result,17);
$email2=odbc_result($result,18);
$category=odbc_result($result,19);
$description=odbc_result($result,20);
if (!$positiondesc == "") {
$anchorlink = $positiondesc;
if ($tempanchor != $anchorlink) {
print("<h3><a name=\"$anchorlink\"></a>".strtoupper($anchorlink)."</h3>\n");
}
print("<p>\n");
print("<strong>$title ");
print("$firstname ");
print("$middlename ");
print("$lastname</strong>");
print("<br/>\n");
print("$orgname");
print("<br />");
print("$address1");
if (!$address2 == "") {
print("<br/>\n");
print("$address2");
}
print("<br />\n");
print("$city,");
print("$state ");
print("$zip");
print("<br />\n");
print("$phonetype1 Phone: ");
print("$phonenumber1");
print("<br />\n");
print("$phonetype2 Phone: ");
print("$phonenumber2");
if ($email1=="") {
print("<br/>\n");
print("$email2");
}
else {
print("<br/>\n");
print("$email1");
}
print("<br />\n");
print("$category");
print("<br />\n");
print("$description");
if ($tempanchor != $anchorlink) {
print("<h3><a name=\"$anchorlink\"></a>".strtoupper($anchorlink)."</h3>\n");
}
$tempprofession = $positiondesc;
$tempanchor = $anchorlink;
}
}
this outputs the following results
http://www.pepperdine.edu/estateandgift/pepnet/membership/dir-profession2.htm
I need a top link that will take you the top of the page after the end of each listing list for ATTORNEY, CPA, FINANCIAL CONSULTANT/ADVISOR, etc. Can anyone direct me in the right way? Thanks!
P.S. I already have the top lists going to their proper anchor as you notice dynamically, i just need the go to TOP anchor list at the end of each stack of listing..:) thanks once again!
I am having determening on where to place a top anchor for the following directory listing
while(odbc_fetch_row($result))
{
$title=odbc_result($result,1);
$firstname =odbc_result($result,2);
$middlename=odbc_result($result,3);
$lastname=odbc_result($result,4);
$position=odbc_result($result,5);
$positiondesc=odbc_result($result,6);
$orgname=odbc_result($result,7);
$address1=odbc_result($result,8);
$address2=odbc_result($result,9);
$city=odbc_result($result,10);
$state=odbc_result($result,11);
$zip=odbc_result($result,12);
$phonetype1=odbc_result($result,13);
$phonenumber1=odbc_result($result,14);
$phonetype2=odbc_result($result,15);
$phonenumber2=odbc_result($result,16);
$email1=odbc_result($result,17);
$email2=odbc_result($result,18);
$category=odbc_result($result,19);
$description=odbc_result($result,20);
if (!$positiondesc == "") {
$anchorlink = $positiondesc;
if ($tempanchor != $anchorlink) {
print("<h3><a name=\"$anchorlink\"></a>".strtoupper($anchorlink)."</h3>\n");
}
print("<p>\n");
print("<strong>$title ");
print("$firstname ");
print("$middlename ");
print("$lastname</strong>");
print("<br/>\n");
print("$orgname");
print("<br />");
print("$address1");
if (!$address2 == "") {
print("<br/>\n");
print("$address2");
}
print("<br />\n");
print("$city,");
print("$state ");
print("$zip");
print("<br />\n");
print("$phonetype1 Phone: ");
print("$phonenumber1");
print("<br />\n");
print("$phonetype2 Phone: ");
print("$phonenumber2");
if ($email1=="") {
print("<br/>\n");
print("$email2");
}
else {
print("<br/>\n");
print("$email1");
}
print("<br />\n");
print("$category");
print("<br />\n");
print("$description");
if ($tempanchor != $anchorlink) {
print("<h3><a name=\"$anchorlink\"></a>".strtoupper($anchorlink)."</h3>\n");
}
$tempprofession = $positiondesc;
$tempanchor = $anchorlink;
}
}
this outputs the following results
http://www.pepperdine.edu/estateandgift/pepnet/membership/dir-profession2.htm
I need a top link that will take you the top of the page after the end of each listing list for ATTORNEY, CPA, FINANCIAL CONSULTANT/ADVISOR, etc. Can anyone direct me in the right way? Thanks!
P.S. I already have the top lists going to their proper anchor as you notice dynamically, i just need the go to TOP anchor list at the end of each stack of listing..:) thanks once again!