SEARCH PLANHOLDER

"; echo "
ENTER CONTRACT NO. : 
"; echo "

"; if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo ""; } while ($row=mysql_fetch_assoc($result)) { $contracts=$row["contractno"]; $plnames=$row["plastname"]; $pfnames=$row["pfirstname"]; $middlenames=$row["middlename"]; echo ""; echo ""; echo ""; echo ""; } while ($row=mysql_fetch_assoc($result)) { $tbranch=$row["branchname"]; $dates=$row["datesign"]; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
CONTRACT NO.
$contracts
LASTNAME$plnamesFIRSTNAME$pfnamesMIDDLE NAME$middlenamesBRANCHNAME$tbranch
DATE$dates
"; } while ($row=mysql_fetch_assoc($result)) { $lotstreets=$row["lotstreet"]; $brgys=$row["brgy"]; $citys=$row["citymunicipal"]; $provinces=$row["province"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
LOT/STREET$lotstreets
BARANGAY$brgysCITY/MUNICIPAL$citysPROVINCE$provinces
"; } while ($row=mysql_fetch_assoc($result)) { $contacts=$row["contactno"]; $occupations=$row["occupation"]; $emails=$row["emailadd"]; $religions=$row["religion"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
CONTACT NO.$contacts
OCCUPATION$occupationsE-MAIL ADDRESS$emailsRELIGION$religions
"; } while ($row=mysql_fetch_assoc($result)) { $dobs=$row["dob"]; $ages=$row["age"]; $sexs=$row["sex"]; $statuss=$row["status"]; $incomes=$row["income"]; $heights=$row["height"]; $weights=$row["weight"]; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
DATE OF BIRTH$dobsAGE$agesSEX$sexsSTATUS$statuss
INCOME$incomesHEIGHT$heightsWEIGHT$weights
"; } while ($row=mysql_fetch_assoc($result)) {$names1=$row["namefirst"]; $address1=$row["addressfirst"]; $ages1=$row["agefirst"]; $relations1=$row["relationfirst"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
BENEFICIARY NAME$names1
ADDRESS$address1AGE$ages1RELATION$relations1
"; } while ($row=mysql_fetch_assoc($result)) {$names2=$row["namesecond"]; $address2=$row["addresssecond"]; $ages2=$row["agesecond"]; $relations2=$row["relationsecond"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
BENEFICIARY NAME$names2
ADDRESS$address2AGE$ages2RELATION$relations2
"; } while ($row=mysql_fetch_assoc($result)) {$names3=$row["namethird"]; $address3=$row["addressthird"]; $ages3=$row["agethird"]; $relations3=$row["relationthird"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
BENEFICIARY NAME$names3
ADDRESS$address3AGE$ages3RELATION$relations3
"; } while ($row=mysql_fetch_assoc($result)) {$names4=$row["namefourth"]; $address4=$row["addressfourth"]; $ages4=$row["agefourth"]; $relations4=$row["relationfourth"]; echo ""; echo ""; echo ""; echo ""; }if (isset($_POST["optcontractno"])) { $cus=$_POST["optcontractno"]; $sql="SELECT contractno,plastname,pfirstname,middlename,datesign,branchname,lotstreet,brgy,citymunicipal,province,contactno,occupation,emailadd,religion,dob,age,sex,status,income,height,weight,namefirst,addressfirst,agefirst,relationfirst,namesecond,addresssecond,agesecond, relationsecond,namethird,addressthird,agethird,relationthird,namefourth,addressfourth,agefourth,relationfourth,conttype,contprice,typepayment,amounttype,timetype,collecttype,ins,commissiontype,tatype,agentno,lastname,firstname,position,fsno,fslastname,fsfirstname,fsposition FROM planholder WHERE contractno='$cus'"; $result=mysql_query($sql,$con); echo "
"; echo "
BENEFICIARY NAME$names4
ADDRESS$address4AGE$ages4RELATION$relations4
"; } while ($row=mysql_fetch_assoc($result)) { $ctypes=$row["conttype"]; $cprices=$row["contprice"]; $tpayment=$row["typepayment"]; $amounts=$row["amounttype"]; $times=$row["timetype"]; $places=$row["collecttype"]; $tcommissiontype=$row["commissiontype"]; $ttatype=$row["tatype"]; $tins=$row["ins"]; $tagentno=$row["agentno"]; $tlastname=$row["lastname"]; $tfirstname=$row["firstname"]; $tposition=$row["position"]; $tfsno=$row["fsno"]; $tfslastname=$row["fslastname"]; $tfsfirstname=$row["fsfirstname"]; $tfsposition=$row["fsposition"]; echo ""; echo ">"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; ?>
CONTRACT TYPE$ctypes
CONTRACT PRICE$cpricesTYPE OF PAYMENT$tpaymentAMOUNT$amounts
INSURED TYPE$tins
BEST TIME TO COLLECT$times
BEST PLACE TO COLLECT$placesAGENT COMMISSION$tcommissiontypeTA COMMISSION$ttatype
AGENT NO.$tagentno
LASTNAME$tlastnameFIRSTNAME$tfirstnamePOSITION$tposition
FSS NO.$tfsno
LASTNAME$tfslastnameFIRSTNAME$tfsfirstnamePOSITION$tfsposition