Hi I'm having got a problem with some of my code and can't figure out what it is. I'm receiving the following error:

Parse error: syntax error, unexpected T_STRING in /home/a1907007/public_html/index.php on line 11

This is my code:

<!DOCTYPE html>
 <html>
 <head>
   <meta charset="UTF-8">
   <title>31seconds</title>
   <link rel="icon" href="Images/Favicon.ico" url="image/x-icon">
   <link rel="stylesheet" href="style/style.css">
 </head>
<body>
   <?php include_once("template_pageTop.php); ?> 
   <div id="pageMiddle"> </div>
   <?php include_once("template_pageBottom.php); ?>
 </body>
 </html>

Any help appreciated, thanks.

Recommended Answers

All 3 Replies

Missing double quotes on line 10 and 12.

As pritaeas said you are missing quotes in line 10 and 12.

 <?php include_once("template_pageTop.php"); ?> //missing closing double quote after php
   <div id="pageMiddle"> </div>
   <?php include_once("template_pageBottom.php"); ?>//missing closing double quotes

Thanks, I can't believe I missed that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.