This is your second post with the same question. To get help on this forum, you should stick to one post per question/topic. Next, post the code you are having trouble with so that the community members can take a look and provide you with guidance.
You need to provide more details... Type of database, what are you using for server-side scripting, etc..?