Jump to content

Linking up the correct quotation marks


JackCode

Recommended Posts

Remove the PHP tags within your string. Variables are expanded within double quotes. However more complicated variables, such as associative arrays need to be wrapped in braces

Also functions cannot be called within strings, so you need to use the concatenation operator.

echo "<td class='left'><a href='member.php?id={$dnn['id']}'>$username".htmlentities($dnn['username'], ENT_QUOTES, 'UTF-8')."</a></td>";

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.