Don't use closing tag for PHP only code.
This is fine.Code:<?php
echo "I am an Indian!";
Printable View
http://php.flashwebhost.com/tom/hello_2.php
Code:
<?php
echo "Ranan's new production - Andhar Nogori Choupot Raja";
Day 1 - Another post
http://php.flashwebhost.com/vineesh/myoffice.php
My Code:
Is there any other way to insert line breaks in php ?Code:<?php
echo 'I am <b>Vineesh Mohan</b>. <br /> <br /> Working in <b><I>
<a href="http://www.FlashWebHost.com">FlashWebHost.com</a></I></b> <br /> <br />
My collegues are <br /><br />
<b>Tom <br /> Sherly <br /> Annie <br /> Sibichan <br /> Suneesh <br /> Steephan <br /> Ramesh <br /> and Mini</b>';
PHP don't have line breaks. You have to use HTML <br>
HTML 5, you don't need to close Tags like img, br. So just use <br> instead of <br />
Ok, now my code is:
Code:<?php
echo 'I am <b>Vineesh Mohan</b>. <br> <br>
Working in <b><I><a href="http://www.FlashWebHost.com">FlashWebHost.com</a></I></b> <br> <br>
My collegues are <br><br>
<b>Tom <br> Sherly <br> Annie <br> Sibichan <br> Suneesh <br> Steephan <br> Ramesh <br> and Mini</b>';
Day 1 - 2nd Post
http://php.flashwebhost.com/sherly/animals.php
Code:<?php
echo 'Wild <b>Animals</b>.
Names are <br /><br />
<b>Tiger <br /> Fox <br /> Elephant <br /> Rabbit <br /> Deer <br /> Wolf <br /> Cheetah <br /> and Horse </b>';
Learning PHP
Day 1- 3rd post
http://php.flashwebhost.com/sherly/thanksprayer.php
Code:<?php
echo '<h1><b><center>Prayer</center></b></h1>' ;
echo '<p>A prayer of thanks is something that every person should say everyday. Everyone has something that they are thankful for. Even if it is just getting out of bed every day. A simple prayer of thanks is: God of Love, I thank You for the people in my life who are easy to love. I thank You for my family and friends who understand my actions, who support me in my decisions, and whose presence can lift the burden of a thorny day. Help me with those who are difficult to love. Let me recognize their flaws and their dangers. But then let me remember your attitude toward them, and lead me to see them in the light of Your love. Amen. </p>';
Day 1 PHP programming
http://php.flashwebhost.com/ramesh/1.php
Code:<?php
echo "hello i am ramesh now i am starting my php study";