/[corp_html]/back/phormation/dbi.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 /back/phormation/dbi.php

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

revision 1.8 by ravilov, Thu Jul 19 12:42:47 2001 UTC revision 1.9 by ravilov, Thu Sep 6 12:27:43 2001 UTC
# Line 1  Line 1 
1  <?  <?
2    $debug = 0;
3  /*  /*
4   * Phormation   * Phormation
5   *  - A library of PHP code to make development of database-driven   *  - A library of PHP code to make development of database-driven
# Line 27  Line 28 
28    
29      function dbi_exec( $conn, $query )      function dbi_exec( $conn, $query )
30      {      {
31          global $DB;          global $DB, $debug;
32          # KLUDGY!!!          # Convert to ISO-8859-2 (KLUDGY!!!)
33          $query = strtr($query, "ŠÐÈÆŽšðèæž", "©ÐÈÆ®¹ðèæ¾");          $query = strtr($query, "ŠÐÈÆŽšðèæž", "©ÐÈÆ®¹ðèæ¾");
34          #echo "<B>[SQL]</B> $query<BR>\n";          if ($debug) echo "<B>[SQL]</B> $query<BR>\n";
35          if( $DB == "pgsql" ) {          if( $DB == "pgsql" ) {
36              $result = pg_exec( $conn, $query );              $result = pg_exec( $conn, $query );
37          } elseif( $DB == "mysql" ) {          } elseif( $DB == "mysql" ) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26