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).


On Tue, 05 Feb 2002 17:23:06 -0700, Michael O'Neal wrote:
>        if ($job_id == '$my_job_id') {
>                    echo " selected ";
>                } 

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to