emvy03 Posted August 11, 2011 Share Posted August 11, 2011 Hi, I have some php script which writes code to a given file. The problem I have is I keep getting an error with this one particular line: $stringData.=" '<img src="' . \$row[\'image_path\'] . '"/>'; "; It keeps giving the error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in ... Does anyone know what the error could be please? Cheers. Link to comment https://forums.phpfreaks.com/topic/244487-unexpected-t_constant_encapsed_string-error/ Share on other sites More sharing options...
TeNDoLLA Posted August 11, 2011 Share Posted August 11, 2011 Change it to (your string concencation is fucked up, the quotes in it) $stringData .= '<img src="' . $row['image_path'] . '"/>'; Link to comment https://forums.phpfreaks.com/topic/244487-unexpected-t_constant_encapsed_string-error/#findComment-1255773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.