Re: Dynamic Dropdown menu question.
| From: | bvr | Date: | Wed, 06 Feb 2002 00:38:01 +0000 |
| Subject: | Re: Dynamic Dropdown menu question. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83661@lists.php.net to get a copy of this message | ||
Lose the single quotes, quoting a single variable is nonsense.
Quotes are used to define strings, it is a feature (called substitution)
of PHP that allows you to use a variable within a string.
The reason it doesn't work is that this subtitution is only performed on
strings enclosed in "'s (double quotes).
bvr.
On Tue, 05 Feb 2002 17:23:06 -0700, Michael O'Neal wrote:
> if ($job_id == '$my_job_id') {
>
> echo " selected ";
> }
>