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
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php