zhq Posted December 6, 2006 Share Posted December 6, 2006 HI,What does message - unexpected T_CONSTANT_ENCAPSED_STRING means?thankszhq Link to comment https://forums.phpfreaks.com/topic/29629-unexpected-t_constant_encapsed_string/ Share on other sites More sharing options...
drifter Posted December 6, 2006 Share Posted December 6, 2006 probably means a missing ; on a line - in not it would be wrong quotes or something Link to comment https://forums.phpfreaks.com/topic/29629-unexpected-t_constant_encapsed_string/#findComment-135978 Share on other sites More sharing options...
The Little Guy Posted December 6, 2006 Share Posted December 6, 2006 sometimes this does it:It would be the red in this line:mysql_query([color=green]"SELECT * FROM tbl_name WHERE id=$row[[/color][color=red]'[/color][color=green]something[/color][color=red]'[/color]][color=green]"[/color]);To fix it I would do this:mysql_query([color=green]"SELECT * FROM tbl_name WHERE id=[i][color=blue]{$row['something']}[/color][/i]"[/color]); Link to comment https://forums.phpfreaks.com/topic/29629-unexpected-t_constant_encapsed_string/#findComment-135998 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.