public function setTable($table){

		//put this in try...catch block for better error handling
		try{

			//check if from is empty
			if ( empty($table)) 
			{
				//throw new exception
				throw new MySQLException("Invalid argument passed for table name", 1);

			}

		}

		//diplay error message
		catch(MySQLException $MySQLExceptionObject){

			//display error message
			$MySQLExceptionObject->errorShow();

		}		

		//set the protected $from value
		$this->froms = $table;
		if(!isset($this->fields[$table])) $this->fields[$table] = array("*");
		return $this;
			
	}