Re: [PHP-DB] Page refresh and database updation

2006-09-26 Thread RaJeSh VeNkAtA
Hi, one thing u can do is u can have a primary key the table you are inserting so that duplication wont be done. If thats not possible redirect the page to the results page after updating the post data than showing him the results in the action page ( action i mean where the form action has b

Re: [PHP-DB] Page refresh and database updation

2006-09-26 Thread Brad Bonkoski
I'm sure there are many ways... a few off the top of my head. a). if there is some field or combination of fields that guarantee uniqueness then you can test for their existence before you insert. b). When you insert the first time set some session variable to something, and then don't insert if

Re: [PHP-DB] Page refresh and database updation

2006-09-26 Thread Sancar Saran
On Tuesday 26 September 2006 15:31, Tamkhane, Pravin wrote: > Hi All, > I am a PHP newbie. I am using HTTP POST request to send some data to Apache > and then using MySql to store that information. Once information is stored > in MySql DB successfully, I display a result page. But the problem I am