Imar83 Posted September 2, 2009 Share Posted September 2, 2009 Hello, Im new here and i would really appreciate some help here. I keep receiving the error: Parse error: parse error in C:\wamp\www\index.php on line 25 Here is the code: <?php session_start(); include("includes/config.inc"); include("includes/func.php"); include("query.php"); include("header.php"); if ($_GET["page"]=='') if ($_GET["pagedb"]!='') { $sql="SELECT * FROM document_master where doc_title='".$_GET["pagedb"]."'"; $cmd = mysql_query($sql); $rs = mysql_fetch_array($cmd);?> <br><?=getsettings(8,"",2);?><br><br> <?echo $rs["doc_content"]; } else { include("home.php"); } else { include($_GET["page"].".php"); } ?> <?include("footer.php"); ?> I cant figure out whats wrong here ! Link to comment https://forums.phpfreaks.com/topic/172839-solved-parse-error-parse-error/ Share on other sites More sharing options...
gevans Posted September 2, 2009 Share Posted September 2, 2009 <?include("footer.php"); ?> should be <?php include("footer.php"); ?> Link to comment https://forums.phpfreaks.com/topic/172839-solved-parse-error-parse-error/#findComment-910935 Share on other sites More sharing options...
PFMaBiSmAd Posted September 2, 2009 Share Posted September 2, 2009 The specific error you are getting is because you got caught by the short open tag problem. Don't use short open tags - <? and <?= and you won't have any problems with your php code being seen as actual php code. Link to comment https://forums.phpfreaks.com/topic/172839-solved-parse-error-parse-error/#findComment-910939 Share on other sites More sharing options...
Imar83 Posted September 2, 2009 Author Share Posted September 2, 2009 Thanks alot, now its working.. Link to comment https://forums.phpfreaks.com/topic/172839-solved-parse-error-parse-error/#findComment-910962 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.