samples/PhotoAlbum/lib/rb.php
public function addColumn( $table, $column, $type) {
		$column = $this->check($column);
		$table = $this->check($table);
		$type=$this->typeno_sqltype[$type];
		$sql = "ALTER TABLE `$table` ADD `$column` $type ";
		$this->adapter->exec( $sql );
	}
public function addColumn( $table, $column, $type) {
		$column = $this->check($column);
		$table = $this->check($table);
		$type=$this->typeno_sqltype[$type];
		$sql = "ALTER TABLE `$table` ADD `$column` $type ";
		$this->adapter->exec( $sql );
	}
public function addColumn ( $ table , $ column , $ type ) { $ column = $ this -> check ( $ column ) ; $ table = $ this -> check ( $ table ) ; $ type = $ this -> typeno_sqltype [ $ type ] ; $ sql = "ALTER TABLE `$table` ADD `$column` $type " ; $ this -> adapter -> exec ( $ sql ) ; }
Adds a column of a given type to a table

@param string  $table  table
@param string  $column column
@param integer $type	  type
Adds a column of a given type to a table