示例#1
0
 function populate()
 {
     $res = sqlQuery("SELECT fname,lname,federaldrugid, specialty FROM users where id =" . mysql_real_escape_string($this->id));
     if (is_array($res)) {
         $this->lname = $res['lname'];
         $this->fname = $res['fname'];
         $this->federal_drug_id = $res['federaldrugid'];
         $this->specialty = $res['specialty'];
     }
     $ins = new InsuranceNumbers();
     $this->insurance_numbers = $ins->insurance_numbers_factory($this->id);
 }
示例#2
0
 function populate()
 {
     $res = sqlQuery("SELECT fname,lname,federaldrugid, specialty, npi, state_license_number FROM users where id =" . add_escape_custom($this->id));
     if (is_array($res)) {
         $this->lname = $res['lname'];
         $this->fname = $res['fname'];
         $this->federal_drug_id = $res['federaldrugid'];
         $this->specialty = $res['specialty'];
         $this->npi = $res['npi'];
         $this->state_license_number = $res['state_license_number'];
     }
     $ins = new InsuranceNumbers();
     $this->insurance_numbers = $ins->insurance_numbers_factory($this->id);
 }