prepare("select * from allotee_biodata where regno = '$regno'") ; $sqlallo->execute() ; if($sqlallo->rowcount() > 0) { $addrow = $sqlallo->fetch(pdo::FETCH_ASSOC) ; $custodian = $addrow['custodian'] ; $office = $addrow['allote_office'] ; $phone = $addrow['allote_phone'] ; $email = $addrow['allote_email'] ; $astate = $addrow['state'] ; $lga = $addrow['lga'] ; $nation = $addrow['nationality'] ; $creg = $addrow['company_regno'] ; $mid = $addrow['identification_means'] ; $idno = $addrow['id_no'] ; $adm = $addrow['admin'] ; } //get data from bio data $sqlstal = $DBcon->prepare("select * from stall_details where regno = '$regno'") ; $sqlstal->execute() ; if($sqlstal->rowcount() > 0) { $addro = $sqlstal->fetch(pdo::FETCH_ASSOC) ; $mname = $addro['market'] ; $town = $addro['town'] ; $mlga = $addro['lga'] ; $msection = $addro['market_section'] ; $zone = $addro['zone'] ; $lineno = $addro['line_no'] ; $stallno = $addro['stall_no'] ; $stype = $addro['stall_type'] ; $certno = $addro['alloc_cert_no'] ; $basis = $addro['bas_of_occup'] ; $ansid = $addro['ansid_no'] ; $eno = $addro['en_no'] ; } // set Gprs if($mname =='OSE OKWODU MARKET') { $gps = 'osegp.jpg' ; } if($mname =='OGBARU MAIN MARKET') { $gps = 'ogbarugps1.jpg' ; } //end set gprs //get passport $sqld = $DBcon->prepare("select * from documents where regno = '$regno'") ; $sqld->execute() ; if($sqld->rowcount() > 0) { $addd = $sqld->fetch(pdo::FETCH_ASSOC) ; $image = $addd['image'] ; } // Get the current date $date = getdate(); // Get the value of day, month, year $currentDay = $date['mday']; //$currentMonth = $date['mon']; //$currentMonth = $date['m']; $currentWeekday = $date['wday']; $month = $date['month']; $year = $date['year']; ?>