Mining is slightly different than what you think it is. Basically, the miner takes a hash of the entire blockchain to-date (it's slightly more complicated than that, but that's irrelevant). Then, the miner adds a nonce -- random data -- to the previous hash, and performs double SHA256 on it. If the result is lower than a certain number (determined by difficulty), i.e. it starts with enough 0's, then it is a valid solution. The miner can then publish the "block," which is composed of a header, including proof that the miner actually found a solution, and transactions, which include a transaction which has no inputs and one 50 BTC (soon to be 25) output. The block, once published, is added to the "blockchain" and new miners build upon it by using it as part of new blocks.
(There is some technical stuff missing here, such as merkle trees and whatnot, but I don't think they pertain too much to the question)
Now, there is the possibility that I'm completely missing the question, in which case you need to rephrase it