示例#1
0
     }
 }
 if (isset($_GET['id'])) {
     $sellerId = $_GET['id'];
     $seller = $sellerCon->getSeller($sellerId);
     if ($seller->errorInfo()[2] == null) {
         $row = $seller->fetch();
         $rowCount = count($row);
         if ($rowCount > 0) {
             $personId = $row['person_id'];
             $person = $personCon->getPerson($personId);
             if ($person->errorInfo()[2] == null) {
                 $personRow = $person->fetch();
                 $personCount = count($personRow);
                 if ($personCount > 0) {
                     $address = $addressCon->getAddress($personId);
                     if ($address->errorInfo()[2] == null) {
                         $addressRow = $address->fetch();
                         $addressCount = count($addressRow);
                         if ($addressCount > 0) {
                             $firstName = $personRow['first_name'];
                             $surname = $personRow['surname'];
                             $phoneNumber = $personRow['phone_number'];
                             $mobileNumber = $personRow['mobile_number'];
                             $emailAddress = $personRow['email_address'];
                             $mailingList = $personRow['mailing_list'];
                             $addressId = $addressRow['address_id'];
                             $streetAddress = $addressRow['street_address'];
                             $suburb = $addressRow['suburb'];
                             $city = $addressRow['city'];
                             $postcode = $addressRow['postcode'];