TitleFirst NameMiddle NameLast NameMaiden NameNick NamePlace of BirthDate of BirthPlace of DeathDate of DeathPublication\n"); for ($i = mysql_num_rows ($result) - 1; $i >= 0; $i--) { if(!($row=mysql_fetch_object($result))) continue; if($i&1) { print (""); } else { print (""); } print ($row->title); print ""; print ($row->first); print ""; print ($row->middle); print ""; print ($row->last); print ""; print ($row->maiden); print ""; print ($row->nick); print ""; print ($row->pob); print ""; if(preg_match("/0000-00-00/",$row->dob)) { print ($row->partial_dob); } else { print ($row->dob); } print ""; print ($row->pod); print ""; if(preg_match("/0000-00-00/",$row->dod)) { print ($row->partial_dod); } else { print ($row->dod); } print ""; print ($row->publication); print ""; print "Obituary"; print ("\n"); } print (""); mysql_free_result ($result); mysql_close ($handle); ?>