Re: 2 ifs embedded?
| From: | Bastien Koert | Date: | Fri, 31 Jul 2009 14:53:18 +0000 |
| Subject: | Re: 2 ifs embedded? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296114@lists.php.net to get a copy of this message | ||
On Fri, Jul 31, 2009 at 10:28 AM, Miller,
Terion<tmiller@springfi.gannett.com> wrote:
>
>
>
> On 7/31/09 8:58 AM, "m0s" <dev@lenss.nl> wrote:
>
> (!empty($row['notes']) && IsAlpha($row['notes']))
>
> I tried that and this one:
>
> If (!empty($row['notes']) && ctype_alpha($row['notes']))
>
> It didn't display the notes at all...
>
> And this one...doesn't display if the field has a 0 in it but I still need it to?
>
> If (!empty($row['critical']) && ctype_alnum($row['critical']))
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hey Teri,
Could the return from the db have a space or something in the value? Perhaps
If (!empty($row['critical']) && ctype_alnum((int)$row['critical']))
might work
--
Bastien
Cat, the other other white meat