In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (James Taylor) wrote:
> $result = mysql_query("select user from users where id = $_SESSION['id]",
> $db);
>
> That just doesn't work, so I have to first go:
>
> $sid = $_SESSION['id'];
> $result = mysql_query("select user from users where id = $sid", $db);
>
> Anyway to get around this?
Curly braces:
$result = mysql_query("select user from users where id =
{$_SESSION['id']}", $db);
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php