Jump to content

[SOLVED] Parse error: parse error


Imar83

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.