src/ORM/Connect/Query.php
public function table()
    {
        $first = true;
        $result = "<table>\n";

        foreach ($this as $record) {
            if ($first) {
                $result .= "<tr>";
                foreach ($record as $k => $v) {
                    $result .= "<th>" . Convert::raw2xml($k) . "</th> ";
                }
                $result .= "</tr> \n";
            }

            $result .= "<tr>";
            foreach ($record as $k => $v) {
                $result .= "<td>" . Convert::raw2xml($v) . "</td> ";
            }
            $result .= "</tr> \n";

            $first = false;
        }
        $result .= "</table>\n";

        if ($first) {
            return "No records found";
        }
        return $result;
    }
public function table()
    {
        $first = true;
        $result = "<table>\n";

        foreach ($this as $record) {
            if ($first) {
                $result .= "<tr>";
                foreach ($record as $k => $v) {
                    $result .= "<th>" . Convert::raw2xml($k) . "</th> ";
                }
                $result .= "</tr> \n";
            }

            $result .= "<tr>";
            foreach ($record as $k => $v) {
                $result .= "<td>" . Convert::raw2xml($v) . "</td> ";
            }
            $result .= "</tr> \n";

            $first = false;
        }
        $result .= "</table>\n";

        if ($first) {
            return "No records found";
        }
        return $result;
    }
public function table ( ) { $ first = true ; $ result = "<table>\n" ; foreach ( $ this as $ record ) { if ( $ first ) { $ result .= "<tr>" ; foreach ( $ record as $ k => $ v ) { $ result .= "<th>" . Convert :: raw2xml ( $ k ) . "</th> " ; } $ result .= "</tr> \n" ; } $ result .= "<tr>" ; foreach ( $ record as $ k => $ v ) { $ result .= "<td>" . Convert :: raw2xml ( $ v ) . "</td> " ; } $ result .= "</tr> \n" ; $ first = false ; } $ result .= "</table>\n" ; if ( $ first ) { return "No records found" ; } return $ result ; }
Return an HTML table containing the full result-set

@return string
Return an HTML table containing the full result - set