source: subversion/sites/namefinder/php/querylog.php @ 17445

Last change on this file since 17445 was 12147, checked in by david, 11 years ago

log queries in the database

File size: 253 bytes
Line 
1<?php
2
3class querylog {
4  var $id;
5  var $date;
6  var $query;
7
8  function log($query) {
9    $ql = new querylog();
10    $ql->query = $query;
11    $ql->date = time();
12    /* id autonumbered */
13    global $db;
14    $db->insert($ql);
15  }
16}
17
18?>
Note: See TracBrowser for help on using the repository browser.