line break in php

hi all, see code below – I need a line break after the “$result” bit

I have tried "
and /n - but only get an error - I’m sure it will turn out to be something I’m missing ( or adding ) in error - but your help would be appreciated

[code]
echo 'Your stitch estimate is: '.$result;

    echo   'This is a very simple and basic estimator, if there are overlapping stitch areas, like
                        detail elements inside a filled shield, the stitch-count in these areas would double up
                        of course. So if you want to base your pricing on this estimator result, analyse your
                        embroidery carefully, add any "double up" stitch areas to either total size or add each of
                        these areas as an extra letter or two and than maybe add another 10 %, just to be safe.
                        The best estimation you can get is asking us to do it for you of course, there is no charge
                         for stitch estimation so nothing stopping you to use our expertise and we usually get the                              estimate to you within 20 to 30 minutes.'

?>

[/code]

thanks

You have the slash backwards on the new line character. For simplicity use double quotes on your echo and eliminate the escape for result. Then you can use the html break character easier and cleaner.

The new line character is only going to give you a break if you view the code source. If you are displaying HTML you will need to use the break

echo "this is $result
";

If you want your code to look cleaner when you view the source in the browser then do this

echo “this is $result
\n”;

great Kevin… did the trick !! ;D

dolf

Glad I could help. Feel free to give a brother some karma. Just click the link under my name

Sponsor our Newsletter | Privacy Policy | Terms of Service