Creating a link in PHP:
echo "<a href=\"$currentFile?rowID=$row['id']\">click here</a>";
This throws an error: Parse error: parse error, expecting 'T_STRING' or 'T_VARIABLE' or 'T_NUM_STRING'. How can you do this?
Also, mixing single and double quotes, and escaping double quotes reduces readability and always generates errors. Is there a better way to create quotes with another syntax, like %Q() in Ruby?
Working PHP 5.2.8.
The problem is your array variable interpolation. The syntax is either
or
So:
See http://php.net/manual/en/language.types.string.php#language.types.string.parsing.