Jump to content

Parse error: syntax error, unexpected T_ELSE in /home/latestne/public_html/tests


Far Cry

Recommended Posts

While trying to run this file...

<?php
include'_class/cms_class.php';

$obj = new modernCMS();
$obj->host ='localhost';
$obj->username ='';
$obj->password ='';
$obj->db ='';

$obj->connect();
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html"; "charset=utf-8" />
<title></title>
</head>

<body>
<?php
if(isset($_GET['id']));
$obj->get_content($_GET['id']);
else:
$obj->get_content();
endif;
?>
</body>
</html>

I get this error...

Parse error: syntax error, unexpected T_ELSE in /home/latestne/public_html/tests

 

What am I doing wrong? Thanks in advance...

 

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.