Dear All Repliers,
I am basically from Electrical Engineering Background. I have interest in webdesigning, so I am learning this,. ,
Who from Electrical Engineering Gives Web designing as a homework?
I am basically Santa Claus, I have an interesting in Programming and IT, so I often assist in a volunteer fashion on this forum.
Who from the North Pole gives MySQL advice?
Point being, you didn't negate anything that was claimed. You can make any number of wild claims. Replace "Electrical Engineering" with "Oval Office" and you see the problem. Even so, it's quite possible to verify what you are saying, rudimentarily, through a Google search. However, from what I found, you already claim to know PHP, and I find it difficult to imagine a case where somebody could "know" PHP but not know how to use mysql.
We have already provided you the means to help yourself. If you want somebody else to write the code for you, you should hire somebody else to do so; otherwise, you will have to invest in learning what you are doing. You cannot "hire" volunteers and ask for one line of code at a time.
You need to connect to the database. Look up what you are learning and using. Learn how it works. learn WHY you need to use db_connect(), and how you would do so. Otherwise, me, or anybody else telling you what line to write wouldn't help you, because you won't know what you need it. (And I don't know where you database server is, whether it's localhost, how your webhost has it configured, what the database name is, or any of those things, which would be needed to create the appropriate db_connect() call.)
If this is for a Freelance project I worry for the client.