Re: Change styling depending on var value
| From: | Ashley Sheridan | Date: | Fri, 20 Nov 2009 22:29:13 +0000 |
| Subject: | Re: Change styling depending on var value | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299998@lists.php.net to get a copy of this message | ||
On Fri, 2009-11-20 at 17:23 -0500, Phil Matt wrote:
> Ashley Sheridan wrote:
>
> > put
> >
> > var_dump($row);
> >
> I inserted this line in the script at the end of the html table, still
> inside the PHP echo statement.
>
> This yields:
>
> bool(false)
>
> Cheers --- Phil
That means that $row doesn't contain what you thought it did. It
contains the boolean value false (which is different from the string
'false') Are you sure you spelt the varialbe correctly in all of your
code?
Thanks,
Ash
http://www.ashleysheridan.co.uk