I am getting this error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\vacation_showcase\admin\participants_edit_list.php on line 17
This is my sql statement:
$sql = 'SELECT substring_index(description,' ',100) as preview, name, extra_line, link FROM participants
ORDER BY name
ASC';
I dont know why it's not working, because when I run the SQL statement in the SQL tab in phpMyAdmin, it works great and shows me the results I want to see.