fishbones/core/DB.php
/**
	 * execute a SQL query. dont return any resulset
	 *
	 * @param	string $sql	sql query
	 *.
	 * @return	boolean	trrue on sucess, false on error
	 */
execute a SQL query. dont return any resulset

@param       string $sql     sql query
.
@return      boolean trrue on sucess, false on error
execute a SQL query . dont return any resulset @param string $sql sql query . @return boolean trrue on sucess false on error
public function query( $sql ) {
		$this->error = '';
		Fishbones::getLog()->writeSql( $sql );
		$res = mysql_query( $sql, $this->conex );
		if( !$res ) {
			$this->transactionStarted? $this->rollBack() : null ;
			$error = "database query error";
			$this->error = $error;
			Fishbones::getLog()->writeDatabaseError($error);
			Fishbones::getLog()->keepLog();
			return false;
		}
		if ( $res == true ) {
			return true;
		}
	}
public function query ( $ sql ) { $ this -> error = '' ; Fishbones :: getLog ( ) -> writeSql ( $ sql ) ; $ res = mysql_query ( $ sql , $ this -> conex ) ; if ( ! $ res ) { $ this -> transactionStarted ? $ this -> rollBack ( ) : null ; $ error = " database query error " ; $ this -> error = $ error ; Fishbones :: getLog ( ) -> writeDatabaseError ( $ error ) ; Fishbones :: getLog ( ) -> keepLog ( ) ; return false ; } if ( $ res == true ) { return true ; } }
execute a SQL query.
execute a SQL query .
// query error // query sin resultados