I was trying to add some code from an external site and when I realised I didn't want it, I deleted it, but I must have accidentally deleted some part of the code as well, as I now get this error message: Parse error: syntax error, unexpected '<' in /home1/skaptart/public_html/about.php on line 6 Here is the code: <?php $idd=""; include_once("config/config.php"); include_once("header.php"); <div id="content"> <div class="content"> <?php if(isset($_GET['uid'])) { $sqll=mysql_query("select * from manage_pages where id='".$_GET['uid']."'"); $resll=mysql_fetch_assoc($sqll);?> <h3> <?php echo $resll['title']; ?> </h3> <div class="contentxtbg" > <?php echo $resll['description']; ?> </div> <?php } else if(isset($_GET['id'])) { $idd=$_GET['id']; $sql=mysql_query("select * from about_us where id='".$idd."'"); $res1=mysql_fetch_assoc($sql);?> <h3> <?php echo $res1['title']; ?> </h3> <div class="contentxtbg" > <?php echo $res1['descr']; ?> </div><?php } ?> </div> </div> <?php include_once("footer.php"); ?>
You need to close off the first <?php bit. <?php $idd=""; include_once("config/config.php"); include_once("header.php"); ?> <- this one here
Missing a close tag: <?php $idd=""; include_once("config/config.php"); include_once("header.php"); ?> <div id="content">
Hey guys, Thank you SO much for helping me. Your quick response is MASSIVELY appreciated! Best, Steve
Try out NetBeans bundled with PHP. It has syntax highlighting and error checking: https://netbeans.org/downloads/index.html It will help you quickly identify such errors in the future.