Re: Sessions.. (I'm learning), can't call a variable?
| From: | Chris Boget | Date: | Thu, 16 Oct 2003 13:05:24 +0000 |
| Subject: | Re: Sessions.. (I'm learning), can't call a variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166293@lists.php.net to get a copy of this message | ||
> Which is the line that relates to the line:
> \"$_SESSION['salutation'];\",
> I've tried removing the ';' but it change nothing...?
> Can anyone see my error?
Either take out the quotes surrounding the word 'salutation' or
take the variable out of the string:
\"" . $_SESSION["salutation"] . "\",
Also, you don't need the semicolon as part of the query.
Chris