I use this code to genefate html
echo \"\";
Everything would be OK unles
This works for me...
echo ''.$table.'';
It's not necessary to use backslaches for escaping when using single quote for echo. Single quote have my vote to work with both php and javascript + html tag.