Project

General

Profile

« Previous | Next » 

Revision 1549

Added by Dietmar almost 13 years ago

christmas time corrected wrong files

View differences:

class.database.php
305 305

  
306 306
} /// end of class database
307 307

  
308
define('MYSQL_SEEK_FIRST', 0);
309
define('MYSQL_SEEK_LAST', -1);
310

  
308 311
class mysql {
309 312

  
310 313
	// Run a query
......
324 327
		return mysql_fetch_array($this->result, $typ);
325 328
	}
326 329

  
330
	function rewind()
331
	{
332
		return $this->seekRow();
333
	}
334

  
335
	function seekRow( $position = MYSQL_SEEK_FIRST )
336
	{
337
		$pmax = $this->numRows() - 1;
338
		$p = (($position < 0 || $position > $pmax) ? $pmax : $position);
339
		return mysql_data_seek($this->result, $p);
340
	}
341

  
327 342
	// Get error
328 343
	function error() {
329 344
		if(isset($this->error)) {

Also available in: Unified diff