Seeing an example of the eval'd code would help. Plus, if you're using " or ' inside the eval'd code they do need to be escaped... ie the following works
$code="echo \"This is a test\";";
eval($code);
Note that the same rules apply in eval'd code as normal php mode. It is easy to forget the ; at the end of the line in the eval string.