Esempio n. 1
0
 function FetchResult($result, $row, $field)
 {
     if (isset($this->limits[$result])) {
         if ($row > $this->limits[$result][1]) {
             $this->warning = "attempted to retrieve a row beyhond the result limit";
             return "";
         }
         $actual_row = $row + $this->limits[$result][0];
     } else {
         $actual_row = $row;
     }
     $this->highest_fetched_row[$result] = max($this->highest_fetched_row[$result], $row);
     return msql_result($result, $actual_row, $field);
 }
Esempio n. 2
0
function GetAllWikiPageNames($dbi_)
{
    $res = msql_query("select pagename from wiki", $dbi['dbc']);
    $rows = msql_num_rows($res);
    for ($i = 0; $i < $rows; $i++) {
        $pages[$i] = msql_result($res, $i, 'pagename');
    }
    return $pages;
}