Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > >> >if ($lineone && $linetwo && $linethree && $linefour = "") > >> > >> Your expression yields true if 1-3 are not-empty AND four is an > >> empty string. > > > > Actually, this expression yields true when $lineone, $linetwo, and > > $linethree

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
At 16:45 26.11.2002, Chris Shiflett spoke out and said: [snip] >--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > >> At 13:50 26.11.2002, [EMAIL PROTECTED] said: >> >if ($lineone && $linetwo && $linethree && $linefour = "") >> >> Your expression yields tr

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Jason Wong <[EMAIL PROTECTED]> wrote: > At 13:50 26.11.2002, [EMAIL PROTECTED] said: > >if ($lineone && $linetwo && $linethree && $linefour = "") > > Actually that expression will always be FALSE. $linefour = "" > does not evaluate to TRUE thus the whole expression to be FALSE! Yes, you're ri

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Jason Wong
On Tuesday 26 November 2002 23:45, Chris Shiflett wrote: > --- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > > At 13:50 26.11.2002, [EMAIL PROTECTED] said: > > >if ($lineone && $linetwo && $linethree && $linefour = "") > > > > Your expression yields true if 1-3 are not-empty AND four is an > >

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Chris Shiflett
--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > At 13:50 26.11.2002, [EMAIL PROTECTED] said: > >if ($lineone && $linetwo && $linethree && $linefour = "") > > Your expression yields true if 1-3 are not-empty AND four is an > empty string. Actually, this expression yields true when $lineone,

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > The db will include these 4 rows even though they don't store data. > Eventually they will contain data for contact info as soon as the users > log in and it prompts them for i

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread ed
The db will include these 4 rows even though they don't store data. Eventually they will contain data for contact info as soon as the users log in and it prompts them for it. On Tue, 26 Nov 2002, DL Neil wrote: > Ed, > Assuming there will be a response from the db-tbl, here is another choice: >

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread DL Neil
Ed, Assuming there will be a response from the db-tbl, here is another choice: if ( $lineone . $linetwo . $linethree . $linefour > "" ) { //show it to the user and ask if they want to change it } else { //prompt for information } Do you mean that the db-tbl will have a row of data even if t

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread ed
All four must be an empty string. I will be pulling the values from a MySQL database. If these fields are empty I'll be prompting for information. If any one of them contain anything I'll be showing it to the user and asking if they want to change it. Thanks, Ed On Tue, 26 Nov 2002, Ernest E

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
At 13:50 26.11.2002, [EMAIL PROTECTED] said: [snip] > I'll be trying to use a routine that checks 4 seperate variables for >content and need to know the easiest method to do so. The function works >on 2 conditions; either all the variables are empty and I do