Hello everyone,
I am a PHP novice and have been working to create a basic content managment system. So far I have been able to resolvemost of the problems but I am having a hard time understanding what the problem is here...
...Let me know if you guys have any suggestions.
Parse error: parse error in C:\wamp\www\content.php on line 39:
<?php
$query = "SELECT *
FROM subjects
ORDER BY position ASC";
$subject_set = mysql_query($query, $connection);
confirm_query($subject_set);
while ($subject = mysql_fetch_array($subject_set)){
echo "<li>{$subject["menu_name"]}</li>";
$query = "SELECT *
FROM pages
WHERE subject_id = {$subject["id"]}
ORDER BY position ASC";
echo "<ul class=\"pages\">";
$page_set = mysql_query("$query, $connection);
confirm_query($page_set);
while ($page = mysql_fetch_array($page_set)){
echo
[B]//- BELOW IS LINE 39[/B]
"<li>{
$page
["menu_name"]
}</li>";
}
echo "<ul class=\"pages\">";
}
?>
Like said, I am very new to PHP so if there is any additional information that could be useful that I left out, please let me know!