table('Edge').".Ti, ".$this->table('Edge').".Tj, ".$this->table('Edge').".MoveTime". " FROM ".$this->table('Edge')." WHERE ".$where; $this->conndb->prepare($sqlString); $this->conndb->execute(); $queryAllResult = $this->conndb->fetchAll(); if(count($queryAllResult) != 0) { $result = array(); foreach ($queryAllResult as $key => $thisResult) { array_push($result, array("Ti" => $thisResult['Ti'], "Tj" => $thisResult['Tj'], "MoveTime" => $thisResult['MoveTime'])); } return $result; } else return null; } }