Re: sending data to two tables.
| From: | Jason Wong | Date: | Wed, 01 May 2002 04:26:50 +0000 |
| Subject: | Re: sending data to two tables. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95485@lists.php.net to get a copy of this message | ||
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)
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The meeting of two personalities is like the contact of two
chemical substances: if there is any reaction, both are transformed.
-- Carl Jung
*/