Jump to content

unexpected T_CONSTANT_ENCAPSED_STRING


zhq

Recommended Posts

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]);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.