s=$sql ".mysql_error().""; if ($row=mysql_fetch_object($res)) { $keyname=$row->hname; $namestr="$row->fname $row->lname"; // generate profile string if this person has one. And Edit info $sqlp="select * from profiles where id='$id'"; $resp=mysql_query($sqlp); // echo "

s=$sql ".mysql_error()."

"; if ($rowp=mysql_fetch_object($resp)) { $prostr="
View Current Bio\n"; if ($row->deceased) $prostr="
View Obituary\n"; } if ($authok and ($authuser==$row->userid or $authuser=='admin')) { // is this picture/ID is the one LOGGED $prostr.="
Edit Your Own Bio"; } else { $prostr.=""; } } $backurl="photo.php?rng=$rng"; // figure out prev and next url (carefully) $sql="select * from se_names where id>'$id' and hname!='' order by id limit 1 "; // next one? $res=mysql_query($sql); if ($row=mysql_fetch_object($res)) { $nexturl="mate.php?id=$row->id&rng=$rng"; } else $nexturl="#"; $sql="select * from se_names where id<'$id' and hname!='' order by id desc limit 1 "; // next one? $res=mysql_query($sql); if ($row=mysql_fetch_object($res)) { $prevurl="mate.php?id=$row->id&rng=$rng"; } else $prevurl="#"; //replaced this with ihrig site //$keyname="Abell-Patti"; echo <<

$namestr $prostr

 

EOF; ?>