[PHP-DB] elseif

2003-01-27 Thread Addison Ellis
hello and thank you for your time. will the below work to check if one field or the other is filled in upon submission? either contact_phone or contact_email is required but not both. best, addison $error = ; if ($name == ) { $error = $errorLIYou must enter a company name./LI; } if

RE: [PHP-DB] elseif

2003-01-27 Thread Ryan Jameson (USA)
, 2003 5:26 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] elseif hello and thank you for your time. will the below work to check if one field or the other is filled in upon submission? either contact_phone or contact_email is required but not both. best, addison $error = ; if ($name

Re: [PHP-DB] elseif

2003-01-27 Thread Paul Chvostek
On Mon, Jan 27, 2003 at 06:26:06PM -0600, Addison Ellis wrote: hello and thank you for your time. will the below work to check if one field or the other is filled in upon submission? either contact_phone or contact_email is required but not both. best, addison I would use something

RE: [PHP-DB] elseif with header

2003-01-21 Thread Bruno Pereira
de 2003 0:29 To: Addison Ellis Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] elseif with header if ($category = 2 and $subcategory = 52) { header(Location: http://www.vanderbilt.edu/register/ca/vacation_rentals.php;); } elseif ($category = 2 and $subcategory = 50) { header(Location

Re: [PHP-DB] elseif with header

2003-01-20 Thread Larry E. Ullman
if ($category = 2 and $subcategory = 52) { header(Location: http://www.vanderbilt.edu/register/ca/vacation_rentals.php;); } elseif ($category = 2 and $subcategory = 50) { header(Location: http://www.vanderbilt.edu/register/ca/rentals.php;); } , etc. for some reason all the elseifs

RE: [PHP-DB] elseif with header

2003-01-20 Thread zmn
You can just as simply include the files you need, there is no need for using the headers. Did the script return any errors? -Oorspronkelijk bericht- Van: Addison Ellis [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 21 januari 2003 1:19 Aan: [EMAIL PROTECTED] Onderwerp: [PHP-DB] elseif

Re: [PHP-DB] elseif statement syntax

2002-03-20 Thread Steve Cayford
You probably have error reporting turned off in your php.ini file or you may be directing errors into your log file, try checking there. Why are you tacking or die(mysql_error()) on the end of each of your query assignments? You're just assigning a string to a variable so there's nothing to

RE: [PHP-DB] elseif statement syntax

2002-03-20 Thread Andrea Caldwell
To: Andrea Caldwell Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] elseif statement syntax You probably have error reporting turned off in your php.ini file or you may be directing errors into your log file, try checking there. Why are you tacking or die(mysql_error()) on the end of each of your