RE: [PHP] Re: logic operands problem

2009-12-07 Thread Ford, Mike
Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: m.f...@leedsmet.ac.uk Tel: +44 113 812 4730 From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 07 December 2009 12:26 To: Ford, Mike Cc: php-general@lists.php.net Subject: RE: [PHP] Re: logic operands problem

RE: [PHP] Re: logic operands problem

2009-12-07 Thread Ashley Sheridan
On Mon, 2009-12-07 at 12:26 +, Ford, Mike wrote: > This is pretty much why SQL does not offer you the XOR operator! Someone better tell the MySQL developers then... http://dev.mysql.com/doc/refman/5.0/en/logical-operators.html Thanks, Ash http://www.ashleysheridan.co.uk

RE: [PHP] Re: logic operands problem

2009-12-07 Thread Ford, Mike
> -Original Message- > From: Merlin Morgenstern [mailto:merli...@fastmail.fm] > Sent: 07 December 2009 11:52 > To: "Sándor Tamás (HostWare Kft.)" > Cc: Merlin Morgenstern; php-general@lists.php.net > Subject: Re: [PHP] Re: logic operands problem > >

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
onday, December 07, 2009 12:39 PM Subject: Re: [PHP] Re: logic operands problem On Mon, 2009-12-07 at 12:37 +0100, Merlin Morgenstern wrote: Peter Ford wrote: > Merlin Morgenstern wrote: >> Hello everybody, >> >> I am having trouble finding a logic for following problem: &g

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Mon, 2009-12-07 at 12:37 +0100, Merlin Morgenstern wrote: Peter Ford wrote: > Merlin Morgenstern wrote: >> Hello everybody, >> >> I am having trouble finding a logic for following problem: >> >> Should be true if: >> page = 1 OR page = 3, but it should also be true if

Re: [PHP] Re: logic operands problem

2009-12-07 Thread HostWare Kft.
e 1 and 3, and another with 2 and 3, am I right? SanTa - Original Message - From: "Ashley Sheridan" To: "Merlin Morgenstern" Cc: "Peter Ford" ; Sent: Monday, December 07, 2009 12:39 PM Subject: Re: [PHP] Re: logic operands problem On Mon, 2009-12-07 at 1

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Ashley Sheridan
On Mon, 2009-12-07 at 12:37 +0100, Merlin Morgenstern wrote: > Peter Ford wrote: > > Merlin Morgenstern wrote: > >> Hello everybody, > >> > >> I am having trouble finding a logic for following problem: > >> > >> Should be true if: > >> page = 1 OR page = 3, but it should also be true if page = 2 O

[PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
Peter Ford wrote: Merlin Morgenstern wrote: Hello everybody, I am having trouble finding a logic for following problem: Should be true if: page = 1 OR page = 3, but it should also be true if page = 2 OR page = 3 The result should never contain 1 AND 2 in the same time. This obviously does n

[PHP] Re: logic operands problem

2009-12-07 Thread Peter Ford
Merlin Morgenstern wrote: > Hello everybody, > > I am having trouble finding a logic for following problem: > > Should be true if: > page = 1 OR page = 3, but it should also be true if page = 2 OR page = 3 > > The result should never contain 1 AND 2 in the same time. > > This obviously does not

[PHP] Re: logic operands problem

2009-12-07 Thread Thales Jacobi
I think you could use another braket on the second example: ((page== 1 OR page== 3) AND page!= 2) OR ((page== 2 OR page== 3) AND page != 1) Other than that I don't think I can help. How come the page can be 1 or 3, but not 2? I think you could change the logic, but I don't have enough info ab