[PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) { $vBkgrndImage = Bkgrnd-Body-Incorrect.jpg; } else { $vBkgrndImage = Bkgrnd-Body-Correct.jpg; } } Thanx -- Robb

Re: [PHP] Nested If...Else...

2004-07-24 Thread Scot L. Harris
On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) { $vBkgrndImage = Bkgrnd-Body-Incorrect.jpg; } else {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Marek Kilimajer
Robb Kerr wrote: On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
On Sat, 24 Jul 2004 18:18:23 +0200, Marek Kilimajer wrote: Robb Kerr wrote: On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if

Re: [PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Jason Davidson
print out all the values of the vars your comparing often youll find one of them is not what your expecting Jason On Sat, 24 Jul 2004 11:05:06 -0500, Robb Kerr [EMAIL PROTECTED] wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if

Re: [PHP] Nested If...Else...

2004-07-24 Thread Matthew Sims
What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) { $vBkgrndImage = Bkgrnd-Body-Incorrect.jpg; } else { $vBkgrndImage = Bkgrnd-Body-Correct.jpg; } } Thanx

Re: [PHP] Nested If...Else...

2004-07-24 Thread Matthew Sims
print out all the values of the vars your comparing often youll find one of them is not what your expecting Jason On Sat, 24 Jul 2004 11:05:06 -0500, Robb Kerr [EMAIL PROTECTED] wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
On Sat, 24 Jul 2004 09:47:52 -0700 (PDT), Matthew Sims wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) { $vBkgrndImage = Bkgrnd-Body-Incorrect.jpg; } else {

Re: [PHP] Nested If...Else...

2004-07-24 Thread Stan F
PM Subject: Re: [PHP] Nested If...Else... On Sat, 24 Jul 2004 09:47:52 -0700 (PDT), Matthew Sims wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer

Re: [PHP] Nested If...Else...

2004-07-24 Thread Robb Kerr
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote: On Sat, 2004-07-24 at 12:05, Robb Kerr wrote: What's wrong with this syntax. I just can't see my mistake. if ($vBkgrndImage == AnswerPage) { if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {