I am trying to follow a tutorial and am having problem conecting to my data base getting this error Parse error: syntax error, unexpected T_STRING in /...../root/includes/funtions.php on line 4 the code is <?php include('includes/connect.php'); fucntion getPosts() { $query = mysql_query("SELECT * FROM posts") or die(mysql_error()); while($post = msql_fetch_assoc($query)) { echo "<h2>" . $post['Title'] . " by" . $post['Author'] . "</h2>"; echo $post['Content']; } } ?> PHP: any ideas