IPB

Career Guidance | Technical Jobs | Walkin Interview & Job Fairs | Fresher Jobs

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Help please. Coding error.
Misha Singh
post Nov 7 2009, 05:10 AM
Post #1


Advanced Member
***

Group: Members
Posts: 8,266
Joined: 23-November 08
Member No.: 6,521



Hey, I have a coding error. Anyone help me? Here is the error:

Parse error: syntax error, unexpected T_VARIABLE in /home/projecth/public_html/index.php on line 6

Here is the code:

Code:
<?php
session_start();
require_once"scripts/connect_to_mysql.php"

//Build Main Navigation menu and gather page data here
$sqlCommand ="SELECT id, linklabel FROM pages ORDER BY pageorder ASC";
$query ="mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());

$menuDisplay = ";
while ($row = mysqli_fetch_array($query)){
$pid = $row["id"];
$linklabel = $row["linklabel"];

$menuDisplay = '<a href="index.php?pid=' . $pid . '">Home</a><br />'
}
mysqli_free_result($query);
//mysqli_close($myConnection).

?>

<!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>Test</title>
<style type="text/css">
<!--
body,td,th {
color: #FFF;
}
body {
background-image: url(../root_directory/style/stripBG.jpg);
background-repeat: repeat;
color:#FFF
}
a:link {
color: #D3B12C;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #D6D6D6;
}
a:hover {
text-decoration: underline;
color: #FFF;
}
a:active {
text-decoration: none;
color: #FFF;
}
-->
</style></head>

<body>
<table width="888" border="0" align="center" cellpadding="6" style="border #6B450C">
<tr>
<td width="200" height="58"><img src="../root_directory/style/logo.png" width="200" height="150" alt="Logo" /></td>
<td width="584" bgcolor="#150D00">$CustomModule</td>
</tr>
</table>
<table width="888" border="0" align="center" cellpadding="6" style="border #6B450C">
<tr>
<td width="22%" valign ="top" bgcolor="#150D00"><?php echo $menuDisplay, ?><br />

<td width="586" bgcolor="#150D00">$Body<br />

<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></td>
</tr>
</table>
<table width="888" border="0" align="center" cellpadding="6" style="border #6B450C">
<tr>
<td bgcolor="#150D00">$Footer</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th March 2010 - 10:01 PM