RE: [PHP-DB] MySQL Returns Error

From: Date: Tue, 05 Aug 2003 19:23:09 +0000
Subject: RE: [PHP-DB] MySQL Returns Error
Groups: php.db 
Request: Send a blank email to php-db+get-29692@lists.php.net to get a copy of this message
> -----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 }

« previous php.db (#29692) next »