[eluser]porquero[/eluser]
php only get variable values from double quote strings.
So you can use heredoc or nowdoc(php5.3):
Heredoc:
Code:
foreach ($myquery_domain->result() as $row ){
$domain = $row->domain;
$domain_id = $row->domain_id;
echo <<<EOT
<tr>
<td>
<span class="flip_domain" id="{$domain_id}">+</span>{$domain}
</td>
</tr>
EOT;
}
heredoc is more strict but you can get more maintanable code.