On 13 Nov 2008, at 15:28, Kyle Terry wrote:
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')";
I can't see anything wrong with that line (except that I don't think
those variables will interpolate correctly, and you don't seem to be
escaping stuff going into your SQL which is, ya know, bad!!). Your
problem is probably on the line before, possible several lines before.
Post a bit of the surrounding code.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php