/[corp_html]/inc/conn.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/conn.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dpavlin, Sat Mar 3 12:56:37 2001 UTC revision 1.6 by dpavlin, Mon Mar 5 15:16:50 2001 UTC
# Line 9  Line 9 
9                  exit;                  exit;
10          }          }
11    
12          $url=basename($PHP_SELF)."?$QUERY_STRING";          $sql_section="";
13          $sth = $dbh->prepare("select item from menu where url = '$url'");  
14            $url=basename($PHP_SELF);
15            if ($QUERY_STRING) $url.="?$QUERY_STRING";
16    
17            if ($section) $sql_section=" and section='$section'";
18    
19            $sth = $dbh->prepare("select item from menu where url = '$url' $sql_section limit 1");
20          $sth->execute();          $sth->execute();
21          global $menu_item;          global $menu_item;
22          if ($row=$sth->fetchrow_hash()) {          if ($row=$sth->fetchrow_hash()) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26