Try this:

echo "<pre>";
print_r( variable_you_wanna_track );
echo "</pre>";

The output will be easy-readable. Or try var_dump().
This helps maintaining scripts in more pleasant way.

----- Original Message -----
From: "Robb Kerr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 24, 2004 8:49 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']) {
> >>     $vBkgrndImage = "Bkgrnd-Body-Incorrect.jpg";
> >>   } else {
> >>     $vBkgrndImage = "Bkgrnd-Body-Correct.jpg";
> >>   }
> >> }
> >>
> >> Thanx
> >> --
> >> Robb Kerr
> >
> > I can't see anything wrong. What's the error you're receiving?
>
> $vBkgrndImage = "Bkgrnd-Body-Incorrect" whether $vAnswerID_RS_PageContent
> equals $row_RS_PageContent['CorrectAnswer'] or not. I've added printouts
of
> my variables to the bottom of the page so that I can check their content.
> And even when both associated variables match, "Bkgrnd-Body-Incorrect" is
> returned.
> --
> Robb Kerr
> Digital IGUANA
> Helping Digital Artists Achieve their Dreams
> ----------------------------------------------------
> http://www.digitaliguana.com
> http://www.cancerreallysucks.org
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to