Re: sending data to two tables.

From: Date: Wed, 01 May 2002 04:31:59 +0000
Subject: Re: sending data to two tables.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-95486@lists.php.net to get a copy of this message
Alright i'll take care of that, thanks a lot! Jule On Wednesday 01 May 2002 00:26, you wrote: > On Wednesday 01 May 2002 11:48, Jule wrote: > > but not the second one: > > > > if (isset($Guestbook[mailinglist])) { > > You should be using: > > if (isset($Guestbook['mailinglist'])) { > > >                          if (mysql_db_query ($DBName, $Query2, > > $Link)) { > >                                  echo "Your e-mail > > address was > > sucessfully added to our mailinglist"; > >                          } else { > >                                  echo "Your e-mail > > address will not be > > added to the mailinglist"; > >                          } > > Are you saying that the else clause gets executed, so you get "Your e-mail > address will not be added to the mailinglist"? > > If so then your error is within: > > if (mysql_db_query ($DBName, $Query2, $Link)) > > Therefore: > > 1) add some error checking code -- see examples in manual and also > mysql_error(). > 2) echo your queries ($Query2) -- Jule Slootbeek jslootbeek@clarku.edu http://blindtheory.cjb.net

« previous php.general (#95486) next »