Пример #1
0
 function getdata()
 {
     $newconnection = new server();
     $newconnection->makeConnection();
     $result = $newconnection->fireQuery();
     $newconnection->closeConnection();
     $arrayindex = 0;
     while ($row = $result->fetch_assoc()) {
         $this->result[$arrayindex] = array($row['id'], $row['username'], $row['first_name']);
         $arrayindex += 1;
     }
 }