views:

42

answers:

5

in my website all pages contain Follow Us panal so inspite or writing it on all pages I have created a seperate modFollow.php file and included it in all pages, I don't know whether its a correct way or not but I am gettein this error message- my indexpage code -

<div class="follow">         
        <?php include 'modFollow.php'; ?>
    </div>

modFollow.php code-

<?php

//follow us module

echo "<h2 class='star'>Follow Us</h2>"
echo "<hr width='100%' color='WhiteSmoke' align='left'>"
echo "<a href='#'><img src='images/twitter.png' width = '35px' height = '32px' title =  'Twitter'/></a>"        
echo "<a href='#'><img src='images/facebook.png' width = '35px' height = '32px' title = 'FaceBook'/></a>"       
echo "<a href='#'><img src='images/rss.jpg' width = '35px' height = '32px' title = 'RSS'/></a>"         
echo "<a href='#'><img src='images/orkut.jpeg' width = '35px' height = '34px' title = 'Orkut'/></a>"  

?>

ERROR: Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in C:\xampp\htdocs\shizin\modFollow.php on line 6

+2  A: 

each of the echo lines needs to end with ;

bro,you beat me!! :)
Srinivas Reddy Thatiparthy
I was shocked to see so many responses at once.. hah
A: 

you forgot to write ; at the end of each echo statement

Srinivas Reddy Thatiparthy
A: 
<div class="follow">         
        <?php 
        include ('modFollow.php'); 
        ?>
    </div>

and dont forget to give ; behind each echo statement

klox
A: 

oh....what a silly mistake I was forgetting ; in modFolloe.php

nectar
please post as a comment;this is not an answer
Srinivas Reddy Thatiparthy
A: 

In php every statment must be terminated by semi colon [;].

you forget to add this at end of the statment.