Hi guys hoping someone can help me out please.....
Got the code where a side menu appears with sub-pages link which are related to the main body article. To do this I used the the command - where project_id = $show. That works fine but the problem lies in when I select a sub-page the side menu's contents disappears.
I know the reason for this is because the $show has now changed to the sub_page id and not the main. Is there anyway to get around this as I want the side_menu to always show extra options with are related to the original choice of article. Thanks in advance....
$result = mysql_query("SELECT * FROM sub_pages where main_id = $show");
if (!$result)
{
die("query failed: " . mysql_error());
}
if (mysql_num_rows($result) > 0)
{
while($row = mysql_fetch_array($result))
{
echo $row['title'];
echo GetMoreLink ($site_url, 'sub_projects.details.php?show='.$row['id']);
}
}