Beispiel #1
0
 public function get($con)
 {
     $sql_query = sql_getUser($con, $this->id);
     if ($sql_query->execute()) {
         $sql_query->store_result();
         $result = sql_get_assoc($sql_query);
         foreach ($result as $row) {
             $this->grp = intval($row['USER_GRP']);
             $this->name = $row['USER_NAME'];
             $this->un = $row['USER_UN'];
         }
     } else {
         die('There was an error running the query [' . $con->error . ']');
     }
 }
Beispiel #2
0
 public function get($con)
 {
     $sql_query = sql_getUser($con, $this->id);
     if ($sql_query->execute()) {
         $sql_query->store_result();
         $result = sql_get_assoc($sql_query);
         foreach ($result as $row) {
             $this->username = $row['ADK_USER_USERNAME'];
             $this->name = $row['ADK_USER_NAME'];
             $this->email = $row['ADK_USER_EMAIL'];
         }
     } else {
         die('There was an error running the query [' . $con->error . ']');
     }
 }