Hi,
You are applying the ereg to the $tabbody variable yet you are printing out $myrow["tabbody"];
If $myrow["tabbody"] is your variable, do this:
ereg_replace("\n", "<br>\n", $myrow["tabbody"]);
and use:
print $tabbody;
or using your style:
printf("%s \n", $tabbody);
hope it works!
-sridhar
P.S. it was me who tested using "testing testing again dasdasd" :-)