please help me out by giving a very easy code
I'm really at a loss as to why you want somebody to do your Google search for you. Please read the forum sticky by Pritaeas with regard to posting appropriate questions:
If you are having trouble with using a search engine, then programming is probably beyond you.
I'm confused with this question.I dont think that it is very good. But however in my experience with web development, If you want to make a solid Website running a good database php and MySql is the way to go.