Re: RE: MySQL Results Not Being Committed To Database

From: Date: Sat, 03 Jul 2004 19:37:52 +0000
Subject: Re: RE: MySQL Results Not Being Committed To Database
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189641@lists.php.net to get a copy of this message
"John W. Holmes" <holmes072000@charter.net> wrote in message news:40E70824.3080009@charter.net... > >> $query = mysql_query($sql); > >> $mysql_result = mysql_query ($sql, $Connection) or die ("Invalid > >>Query - " . mysql_error()); > > You're running the query twice. Take out that first line. Michael, that's where your duplicate key error comes from. Forget about the table structure. Thanks, John. > > And I second the recommendation to please reply to the list and not > individuals unless they request it. > > -- > ---John Holmes...

« previous php.general (#189641) next »