{"id":938,"date":"1999-01-01T18:07:18","date_gmt":"1999-01-01T18:07:18","guid":{"rendered":"http:\/\/shrule.com\/?page_id=938"},"modified":"2018-10-05T12:31:28","modified_gmt":"2018-10-05T12:31:28","slug":"ancestor-search-census-1901-and-1911","status":"publish","type":"page","link":"http:\/\/www.shrule.com\/?page_id=938","title":{"rendered":"Ancestor search :: Census 1901 and 1911"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.shrule.com\/wp-content\/uploads\/2012\/02\/genealogy.png\" alt=\"Genealogy :: the  search for you ancestors\" title=\"Genealogy :: the  search for you ancestors\" width=\"600\" align=\"center\" \/><\/p>\n<ul>\n<li>\n<h2>Census 1901 (B1)<\/h2>\n<p> Head of Household forms :: showing building and property details .<\/p>\n<p><?php\nglobal $wpdb;\n\/\/------------------------------------------------------------\n$pid  =  $_REQUEST['page_id'];  \/\/ current page id in wordpress\n\nif(isset($_REQUEST['submit'])) {  $submit   = $_REQUEST['submit'] ; }\nif(isset($_REQUEST['cn'])) {  $cn= $_REQUEST['cn'] ; }\nif(isset($_REQUEST['sn'])) {  $sn= $_REQUEST['sn'] ;  }\nif(isset($_REQUEST['cp'])) {  $cp= $_REQUEST['cp'] ;  }\n\nswitch($cn)\n  { case ''    : $f_cn = '%' ;  break;\n    case '*'   : $f_cn = '%' ;  break;\n    case 'Any' : $f_cn = '%' ;  break;\n    default    : $f_cn = $cn ;  \n   }\nif( $f_cn == '%'  ){ $cn = 'Any' ; }  \/\/ firstname\n\nswitch($sn)\n  { case ''   : $f_sn = 'xxxxxxxx' ; break;\n    case '*'  : $f_sn = 'xxxxxxxx' ; break;\n    case '%'  : $f_sn = 'xxxxxxxx' ; break;\n    default   : $f_sn = $sn ;   \n   }\nif( $f_sn ==  'xxxxxxxx' ){ $sn = '' ; }  \/\/ surname\n\nswitch($cp)\n   {  case ''  : $f_cp = 'ALL' ;  break;\n      case '*' : $f_cp = 'ALL' ;  break;\n      case '%' : $f_cp = 'ALL' ;  break;\n      default  : $f_cp = $cp ; \n\t}\nif( $f_pn ==  'ALL' ){ $pn = 'ALL' ; }  \/\/ parish\n\n\/\/------------------------- hoh 1901    ------------------------------------------------\nif( $submit == \"Search\")\n  {\n\/\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx submit ck\n\nif($cp == 'ALL')\n   { $seek = '%$f_sn%' ;\n     $query = $wpdb->prepare(&#8216; select * from _gr_census_1901hoh<br \/>\n                               left  join  _grp_townlands<br \/>\n                               on  _gr_census_1901hoh.TL_ID  = _grp_townlands.TLid<br \/>\n                               WHERE SOUNDEX(hoh_surname) like SOUNDEX(%s)<br \/>\n                               OR landlord like %s&#8217;,$f_sn , $seek) ;<br \/>\n    }<br \/>\n   else<br \/>\n    { $seek = &#8216;%$f_sn&#8217; ;<br \/>\n      $query = $wpdb->prepare(&#8216; select * from _gr_census_1901hoh<br \/>\n                               left  join  _grp_townlands<br \/>\n                               on  _gr_census_1901hoh.TL_ID  = _grp_townlands.TLid<br \/>\n                               WHERE (  _gr_census_1901hoh .status = RIGHT(%s,3) )<br \/>\n                                AND (      ( SOUNDEX(hoh_surname) = SOUNDEX(%s))<br \/>\n                                OR( landlord like %s ) )&#8217;,$f_cp  ,$f_sn  ,$seek ) ;<br \/>\n     }<\/p>\n<p>   $res = $wpdb->get_results($query , ARRAY_N);<\/p>\n<p>   if($res ) \/\/ is there a good result<br \/>\n  \t{  $norows =  $wpdb->num_rows ;<br \/>\n  \t   if( $norows > 0 )<br \/>\n        {<br \/>\n         printf(&#8221; There are %s entries closely matching your search in the Census 1901 Head of Household list.<\/p>\n<hr \/>\n<p>&#8220;, $norows);<br \/>\n         \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n         printf(&#8220;<\/p>\n<ul> &#8220;);<br \/>\n         foreach ( $res as $row )<br \/>\n           {            \/\/##################################<br \/>\n            printf(&#8220;<b>$row[14] $row[15]<\/b><br \/>&#8220;);<br \/>\n            printf(&#8220;$row[14] $row[15] is listed as a head of household (1901) in $row[26] , civil parish of $row[23] . &#8220;);<br \/>\n            if( $row[17] <> &#8221;)<br \/>\n               {<br \/>\n                printf(&#8220;There were $row[17] people in a &#8220;);<br \/>\n                if( $row[16] <> &#8221;) {     printf(&#8220;$row[16] roomed &#8220;);      }<br \/>\n                printf(&#8221; $row[4] built of &#8220;);<br \/>\n                if( $row[7] == 1) {  printf(&#8221; stone,brick or concrete &#8220;);  }<br \/>\n                   else {  printf(&#8221; wood , mud or perishable material &#8220;);   }<br \/>\n                if( $row[7] == 1) { printf(&#8221; with a slate,iron or tiled roof .&#8221;); }<br \/>\n                   else {  printf(&#8221; with a thatched or wooden roof . &#8220;);   }<br \/>\n                if($row[18] <> &#8221;){<br \/>\n                printf(&#8220;<br \/><small>The landholder for the property is given as <b>$row[18]<\/b>.<\/small> &#8220;);  }<br \/>\n                }<br \/>\n                printf(&#8220;<\/p>\n<hr \/>\n<p>&#8220;);<br \/>\n            }                                                  \/\/##################################<br \/>\n         printf(&#8220;<\/ul>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n        }<br \/>\n      else<br \/>\n        {<br \/>\n     Printf(&#8220;Sorry no entries match your query in the Census 1901 Head of Households list.<\/p>\n<hr \/>\n<p>&#8220;);<br \/>\n        }<br \/>\n    }<br \/>\n\/\/&#8212;&#8212;&#8212;&#8211;1901 b1 hoh  search end   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\/\/######################################################################<br \/>\nprintf(&#8220;<\/p>\n<h2>Census 1901 (A)<\/h2>\n<p>&#8220;);<br \/>\nprintf(&#8220;Family forms , detailing each person present on census night .<br \/>&#8220;);<br \/>\n\/\/ 1901 a form goes here when done<\/p>\n<p>$query = $wpdb->prepare(  &#8216; select  *  from _gr_census_1901a<br \/>\n                            left  join  _grp_townlands<br \/>\n                              on  _gr_census_1901a.TownlandID  = _grp_townlands.TLid<br \/>\n                           WHERE SOUNDEX(surname)  like  SOUNDEX(%s) &#8216;,$f_sn )  ;<\/p>\n<p>$res = $wpdb->get_results($query , ARRAY_N);<\/p>\n<p>if($res ) \/\/ is there a good result<br \/>\n  { $norows =  $wpdb->num_rows ;<br \/>\n    if( $norows > 0 )<br \/>\n       {<br \/>\n         printf(&#8221; There are %s entries closely matching your search in the Census 1901 Family Form list.&#8221;, $norows);\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n         printf(&#8220;<\/p>\n<ul> &#8220;);<br \/>\n         foreach ( $res as $row )<br \/>\n           {                                                 \/\/##################################<br \/>\n             printf(&#8220;<b>$row[3] $row[2] <\/b><br \/>&#8220;);<br \/>\n             if( $row[0] <> &#8216;0&#8217;){  printf(&#8220;$row[3] $row[2] is listed on form $row[0] in $row[24]. &#8220;);  }<br \/>\n              else{  printf(&#8220;$row[3] $row[2] is listed in $row[24]. &#8220;);    }<br \/>\n             printf(&#8220;$row[3]  was aged $row[5] in 1901&#8221;);<br \/>\n\t\t     if($row[10] <> &#8221;){ printf(&#8221; and could speak $row[11].&#8221;);  }else{ printf(&#8221; .&#8221;);  }<br \/>\n             printf(&#8220;<br \/> $row[3]&#8217;s  occupation was listed as $row[8] and they were a member of the $row[9] religion.&#8221;);<br \/>\n             printf(&#8221; <br \/>$row[3]  was born in $row[7] and under education &#8220;);<br \/>\n             if( $row[10] <> &#8216; &#8216;){ printf(&#8221; is entered : <i>$row[10]<\/i>&#8220;); }<br \/>\n               else{  printf(&#8220;nothing is entered&#8221;);  }<br \/>\n             printf(&#8220;<\/p>\n<hr \/>\n<p>&#8220;);<br \/>\n            }                                               \/\/##################################<br \/>\n         printf(&#8220;<\/ul>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n        }<br \/>\n      else<br \/>\n        {<br \/>\n          Printf(&#8220;Sorry no entries match your query in the Census 1901 census from this area.<br \/>&#8220;);<br \/>\n        }<br \/>\n    }<br \/>\n\/\/&#8212;&#8212;&#8212;&#8211;1901 b1 search end   &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\/\/############################################<\/p>\n<p>\/\/ end of the submit check xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<\/p>\n<p>printf(&#8220;<\/p>\n<h2>Census search form<\/h2>\n<p>&#8220;);<br \/>\nprintf(&#8220;Search the records for other people ..&#8221;);<\/p>\n<p>}<\/p>\n<p>printf(&#8220;<\/li>\n<hr \/>\n<li>&#8220;);\n<p>PRINTF(&#8220;<\/p>\n<div class=\\\"formshrule\\\">&#8220;);<br \/>\nPRINTF(&#8220;<\/p>\n<form METHOD=\\\"POST\\\" ACTION=\\\"?page_id=$pid\\\">&#8220;);<\/p>\n<p>if(isset($_REQUEST[&#8216;submit&#8217;]))<br \/>\n    {    $submit   = $_REQUEST[&#8216;submit&#8217;] ;   }<\/p>\n<p>PRINTF(&#8220;<\/p>\n<fieldset>\n<legend>Search the Census records again <\/legend>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nPRINTF(&#8220;<\/p>\n<table>&#8220;);<br \/>\nPRINTF(&#8220;<\/p>\n<tr>\n<td><label for=\\\"firstname\\\">First name ::<\/label><\/td>\n<td>&#8220;);<br \/>\nif(isset($_REQUEST[&#8216;cn&#8217;]))<br \/>\n           {     PRINTF(&#8220;<input TYPE=\\\"TEXT\\\" NAME=\\\"cn\\\" VALUE=\\\"$cn\\\" \/>&#8220;);               }<br \/>\n            ELSE{    PRINTF(&#8220;<input TYPE=\\\"TEXT\\\" NAME=\\\"cn\\\" VALUE=\\\"Any\\\" \/>&#8220;);    }<br \/>\nPRINTF(&#8220;<\/td>\n<\/tr>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>PRINTF(&#8220;<\/p>\n<tr>\n<td><label for=\\\"surname\\\">Surname or last name ::<\/label><\/td>\n<td>&#8220;);<br \/>\nif(isset($_REQUEST[&#8216;sn&#8217;]))<br \/>\n         {  PRINTF(&#8220;<input TYPE=\\\"TEXT\\\" NAME=\\\"sn\\\" VALUE=\\\"$sn\\\" \/>&#8220;);    }<br \/>\n          ELSE{ PRINTF(&#8220;<input TYPE=\\\"TEXT\\\" NAME=\\\"sn\\\" \/>&#8220;);            }<br \/>\nPRINTF(&#8220;<\/td>\n<\/tr>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>printf(&#8220;<\/p>\n<tr>\n<td><label for=\\\"parish\\\">Select the Parish ::<\/label><\/td>\n<td>&#8220;);<\/p>\n<p>$query = $wpdb->prepare(&#8216;select civilparish,cpid FROM _grp_civilparish group by cpid&#8217;,1);<br \/>\n \/\/ count records in each table<br \/>\n$combo = $wpdb->get_results($query , ARRAY_N);<br \/>\nprintf(&#8220;<select NAME=\\\"cp\\\" CLASS=\\\"input_field\\\" \/>&#8220;);<br \/>\nif(isset($_REQUEST[&#8216;cp&#8217;]))<br \/>\n         {    $cp= $_REQUEST[&#8216;cp&#8217;] ;<br \/>\n               if($cp <> &#8216;ALL&#8217;){ printf(&#8220;<option VALUE=\\\"ALL\\\">All parishes<\/option>&#8220;); }<br \/>\n                 else{ printf(&#8220;<option VALUE=\\\"ALL\\\" SELECTED>All parishes<\/option>&#8220;); }          }<br \/>\n    else{printf(&#8220;<option VALUE=\\\"ALL\\\" SELECTED>All parishes<\/option>&#8220;);}<\/p>\n<p>foreach( $combo as $row )<br \/>\n\t     {  $cp_code = substr($row[1],0,6) ;<br \/>\n                 if($cp == $cp_code)<br \/>\n                     {        PRINTF(&#8220;<option VALUE=\\\"$cp_code\\\" SELECTED>$row[0]<\/option>&#8220;);    }<br \/>\n                    else{ PRINTF(&#8221;<option VALUE=\\\"$cp_code\\\">$row[0]<\/option>&#8220;);   }                      }<br \/>\nprintf(&#8220;<\/select><\/td>\n<\/tr>\n<p>&#8220;);<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>?><\/p>\n<tr>\n<td><input type=\"reset\" VALUE=\"Clear form\"\/><\/td>\n<td><input TYPE=\"submit\" NAME=\"submit\" VALUE=\"Search\"><\/td>\n<\/tr>\n<\/table>\n<\/fieldset>\n<\/form>\n<\/div>\n<\/li>\n<\/ul>\n<p><\/p>\n<h2>Census 1901 and 1911<\/h2>\n<p>Full government censuses were taken of the whole island in 1821, 1831, 1841, 1851, 1861, 1871, 1881, 1891 1901, and 1911. The first four, for 1821, 1831, 1841, and 1851, were largely destroyed in 1922, in the fire at the Public Record Office; surviving fragments are detailed under  the county source-lists. Those for 1861 1871 1881 and 1891 were completely destroyed earlier, by order of the government\n  <\/p>\n<p>This means that the earliest surviving comprehensive returns are for 1901 and 1911. Because of this, the normal rule that census returns should not be available to the public for 100 years has been suspended in the Republic of Ireland, and the original returns can be consulted in the National Archives.\n  <\/p>\n<p>The 1901 census  B1 form details are searchable here. This form gives details about the type of house and the head of the households name .<\/TD>\n  <\/p>\n<p> The first four, for 1821, 1831, 1841, and 1851, were largely destroyed in 1922, in the fire at the Public Record Office; surviving fragments are detailed below. Those for 1861 and 1871 were completely destroyed earlier, by order of the government. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Census 1901 (B1) Head of Household forms :: showing building and property details . Census 1901 and 1911 Full government censuses were taken of the whole island in 1821, 1831, 1841, 1851, 1861, 1871, 1881, 1891 1901, and 1911. The first four, for 1821, 1831, 1841, and 1851, were largely destroyed in 1922, in the [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":338,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-938","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/pages\/938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"http:\/\/www.shrule.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=938"}],"version-history":[{"count":0,"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/pages\/938\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/www.shrule.com\/index.php?rest_route=\/wp\/v2\/pages\/338"}],"wp:attachment":[{"href":"http:\/\/www.shrule.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}