Re: MySQL Returns Error
| From: | Jeff | Date: | Tue, 05 Aug 2003 19:51:38 +0000 |
| Subject: | Re: MySQL Returns Error | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29694@lists.php.net to get a copy of this message | ||
Oops, my mistake, it's not a blank entry - it re enters the last entry.
I can hit F5 or click refresh 1000 times and it will enter the last entry
1000 times.
"Jeff" <jroth1@telus.net> wrote in message
news:20030805193545.88580.qmail@pb1.pair.com...
> I tried putting that in a few diffrent places, same result - is there
> somewhere special I need to put that?
>
> "Matt Schroebel" <MSchroebel@hsus.org> wrote in message
> news:D4DB668A680B2549AE977FB0B193E2E80144F3B4@email.hsus.org...
>
>
> > -----Original Message-----
> > From: Jeff [mailto:jroth1@telus.net]
> > Sent: Tuesday, August 05, 2003 3:15 PM
> > To: php-db@lists.php.net
> > Subject: Re: [PHP-DB] MySQL Returns Error
> >
> > Every time I access or refresh the page, it adds one blank
> > entry to the DB.
> >
> > Maybe I have the insert query in the wrong place?
>
> if ('POST' == $_SERVER['REQUEST_METHOD']) {
> //someone submitted the form with method="post"
> // so validate input, and if okay store it in db
> }
>
>