/[hr-web]/inc/conn.php
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.php

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

revision 1.5 by dpavlin, Fri May 18 12:51:41 2001 UTC revision 1.7 by ravilov, Thu Sep 5 08:52:21 2002 UTC
# Line 28  Line 28 
28                  if (!$DBH || !$DBH->dbh) return array();                  if (!$DBH || !$DBH->dbh) return array();
29                  $DBH->errstr = "";                  $DBH->errstr = "";
30                  $ret = array();                  $ret = array();
31                    // Win1250 -> ISO8859-2
32                    $q = strtr($q, "šðè枊ÐÈÆŽ", "¹ðè澩ÐÈÆ®");
33                    #echo "<tt>[$q]</tt><br>\n";
34                  if (eregi('^\s*SELECT', $q)) {                  if (eregi('^\s*SELECT', $q)) {
35                          $sth = $DBH->prepare($q);                          $sth = $DBH->prepare($q);
36                          if (!$sth) return array();                          if (!$sth) return array();
# Line 36  Line 39 
39                          while ($row = $sth->fetchrow_array())                          while ($row = $sth->fetchrow_array())
40                                  array_push($ret, $row);                                  array_push($ret, $row);
41                          $sth->finish();                          $sth->finish();
42                  } else                  } else array_push($ret, $DBH->dbh_do($q));
                         array_push($ret, $DBH->dbh_do($q));  
43                  return $ret;                  return $ret;
44          }          }
45  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26