| ";
include 'leftwills.php';
print " | ";
print "";
if(isset($_POST['seeksubmit']))
{
$soc_nr=$_POST['seek1'];
list($soc1, $soc2) = split('[-]', $soc_nr);
$soc_nr="$soc1$soc2";
print "";
print "| Person-nummer | Visa testamente | ";
$getans="SELECT * FROM wills WHERE willsSocNr LIKE '%$soc_nr%' ORDER BY willsSocNr, willsID ";
$getans2=mysql_query($getans) or die("Kunde inte hitta n\xe5got testamente");
while($getans3=mysql_fetch_array($getans2))
{
$changeFormat=substr(chunk_split($getans3[willsSocNr], 6, '-'),0,11);
print "| $changeFormat | Se testamentet | ";
}
print " ";
}
else
{
print " ";
}
print " |