RE: [PHP] code
| From: | Martin Towell | Date: | Mon, 18 Feb 2002 23:51:51 +0000 |
| Subject: | RE: [PHP] code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85312@lists.php.net to get a copy of this message | ||
shouldn't matter - php would type cast one to other and then compare
-----Original Message-----
From: DL Neil [mailto:PHPml@DandE.HomeChoice.co.uk]
Sent: Wednesday, February 20, 2002 10:24 AM
To: Tyler Longren; John Gurley; php-general@lists.php.net
Subject: Re: [PHP] code
Is $inst an int or a string?
=dn
> make sure you're doing it like this:
> if ($inst == "1") {
> // do this
> }
> else {
> // do something else
> }
>
> instead of this:
> if ($inst = "1") {
> // do this
> }
> else {
> // do this
> }
>
> Just a thought.
>
> Tyler
>
> ----- Original Message -----
> From: "John Gurley" <john_g83@hotmail.com>
> To: <php-general@lists.php.net>
> Sent: Monday, February 18, 2002 10:28 AM
> Subject: [PHP] code
>
>
> > not trying to be sneaky or hide anything, the only thing is that it is a
> > long code and what ever is wrong with what I am using it will not let me
> > paste the code over!?!
> > when I echo $inst i get the expected result (i.e. 1 or 2) but even if
the
> > result is 1 it goes into the loop...and yes the select method is in the
> html
> > code.
> >
> > thanks again...sorry I'm making life so difficult by not including
enough
> > code...I'll try again and post it if I am able to paste it.
> >
> > _________________________________________________________________
> > Join the world's largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
> >
> > --
> > 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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php