Re: Weird Syntax Error
| From: | Fly2k) | Date: | Thu, 13 Nov 2008 15:38:48 +0000 |
| Subject: | Re: Weird Syntax Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283256@lists.php.net to get a copy of this message | ||
Try:
$insert = "INSERT INTO release_file_upload (upl_file_name, upl_file_type,
upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename',
'{$_SESSION['upload']['type']}',
'{$_SESSION['upload']['size']}', now(),
'$username', '$path', '$release_id')";
2008/11/13 Kyle Terry <kyle@kyleterry.com>:
> I keep getting this syntax error on the following string...
>
> syntax error unexpected T_ENCAPSED_AND_WHITESPACE expecting T_STRING or
> T_VARIABLE or T_NUM_STRING
>
> $insert = "INSERT INTO release_file_upload (upl_file_name, upl_file_type,
> upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename',
> '$_SESSION['upload']['type']',
> '$_SESSION['upload']['size']', now(),
> '$username', '$path', '$release_id')";
>
> --
> Kyle Terry | www.kyleterry.com
>
--
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733
-----
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br