PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
function Display1()
{
?>
Hello<BR>
<?
}
function Display2()
{
?>
Hello<BR>
<?php
}
function Display3()
{
echo 'Hello<BR>';
}
?>
All 3 displays work on my machine but in the server Display2 doesn't show up. Gives some error and after removing php from the <?php it showed up alright.
I know this is a function and I wanted to know if direct insertion of HTML tags will do any harm when compared to echo ?
Thanks
Last edited by anjanesh on Tue Aug 10, 2004 11:11 pm, edited 1 time in total.
I changed all that because I was getting this error and it still shows up:
Parse error: parse error, unexpected $end in xxxxxxx\xxx.php on line 211
There is a ?> at end. Now only one because the first one was for <?php at the location of function defiition. I knew I had many of <? and ?> and so I converted them all the echo but the error still shows ! There are only 210 lines and errno is 211 !!!
Last edited by anjanesh on Tue Aug 10, 2004 10:52 pm, edited 1 time in total.