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 |
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 ); |
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( ){ |
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 |
|
|
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 |
} |
} |