/[informatika.old]/html/inc/class.DBD::interbase
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 /html/inc/class.DBD::interbase

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

revision 1.1.2.1 by dpavlin, Mon Jul 31 12:05:00 2000 UTC revision 1.1.2.2 by dpavlin, Mon Jul 31 18:31:36 2000 UTC
# Line 93  class DBD_interbase { Line 93  class DBD_interbase {
93    
94        return;        return;
95      }      }
96      $rows = ibase_cmdtuples( $result );      $rows = ibase_num_fields( $result );
97      if( $rows == 0 ){ $rows = '0E0'; }      if( $rows == 0 ){ $rows = '0E0'; }
98      return( $rows );      return( $rows );
99    }//end fn do    }//end fn do
# Line 153  class STH_interbase { Line 153  class STH_interbase {
153    function execute( ){    function execute( ){
154      if( ! $this->dbh ){ return; }      if( ! $this->dbh ){ return; }
155      echo "Running query $this->query<br>\n";      echo "Running query $this->query<br>\n";
156      $this->result = ibase_query( $this->dbh, $this->query );    // fix      $this->result = ibase_query( $this->dbh, $this->query );
157            
158      if( ! $this->result ){      if( ! $this->result ){
159        $this->errstr = "STH Execute failed: ".ibase_errmsg( $this->dbh );        $this->errstr = "STH Execute failed: ".ibase_errmsg( $this->dbh );
# Line 173  class STH_interbase { Line 173  class STH_interbase {
173    
174    
175    function rows( ){    function rows( ){
176        return( ibase_numrows( $this->result ) );        return( ibase_num_fields( $this->result ) );
177    } //end rows fn    } //end rows fn
178    
179    function fetchrow_array( ){    function fetchrow_array( ){
# Line 181  class STH_interbase { Line 181  class STH_interbase {
181        //echo "STH Error: Calling fetchrow on null result.<br>\n";        //echo "STH Error: Calling fetchrow on null result.<br>\n";
182        return;        return;
183      }      }
184      if ($this->row >= ibase_numrows($this->result)) return 0;      if ($this->row >= ibase_num_fields($this->result)) return 0;
185      return( ibase_fetch_row( $this->result, $this->row++ ));      return( ibase_fetch_row( $this->result, $this->row++ ));
186        return( ibase_fetch_row( $this->result ));
187    }    }
188    
189    
# Line 191  class STH_interbase { Line 192  class STH_interbase {
192        //echo "STH Error: Calling fetchrow on null result.<br>\n";        //echo "STH Error: Calling fetchrow on null result.<br>\n";
193        return;        return;
194      }      }
195      if ($this->row >= ibase_numrows($this->result)) return 0;      if ($this->row >= ibase_num_fields($this->result)) return 0;
196      return( ibase_fetch_array( $this->result, $this->row++ ));      return( ibase_fetch_array( $this->result, $this->row++ ));
197    }    }
198  }  }

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.26