Re: Eh
| From: | Mohammed Abdel'al | Date: | Fri, 25 Aug 2000 01:12:17 +0000 |
| Subject: | Re: Eh | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2354@lists.php.net to get a copy of this message | ||
i think it should be
if($cmsProducts == "Unkown")
== is for comparison
= for assignment
any way its common error cuz php use C like syntax
----- Original Message -----
From: "Jeroen ten Berge" <j.ten.berge@getexo.nl>
To: "Php-Db" <php-db@lists.php.net>
Sent: Thursday, August 24, 2000 5:59 PM
Subject: [PHP-DB] Eh
> Can some one help me with this one ?
> Via an HTML_POST_VARS I get this value from a combo box (named
cmbProducts),
> now if i do an if like :
> if ($cmbProducts="Unkown")
> It overwrites $cmbProducts with "Unknown" !!!
>
> Anyone knows this ?
>
> Regards,
> Jeroen.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>