Menu
<?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 WHERE showing=’1′ ORDER BY id ASC”;
$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error($myConnection));
$menuDisplay = ”;
while ($row = mysqli_fetch_array($query)) {
$pid = $row[“id”];
$linklabel = $row[“linklabel”];
$menuDisplay .= ‘<a href=”index.php?pid=’ . $pid . ‘”>’ . $linklabel . ‘</a><br />’;
}
mysqli_free_result($query);
//mysqli_close($myConnection);
?>
this give me an error saying
syntax error, unexpected ‘$sqlCommand’