Hi we have the fallowing requierment <? $des='<p><srong>hello</strong></p> <p><srong>hello</strong></p>'; //$des1=trim($des); //echo $des1; $str=str_replace (" ", "",$des); ?> <script> alert('<?php echo $des1;?>'); </script> in the above code string is in two lines. we want to print this string in an alert message. but we are not getting the string in alert if we put the string in single fallowing manner $des='<p><srong>hello</strong></p><p><srong>hello</strong></p>'; getting the alert message Please provide help how to comnine number of rows in to a single row Thanks&Regards SrinivasPMM