This may be hard for me to explain as I am not well versed in these terms just yet but here goes.
I am working on a church website for my church. In this website is a page with a list of ministries on it. They want it dynamic and have a CMS backend for it so they can add/edit/delete them as they need to. This is no problem, I have it in the DB and outputting to the page, the problem lies with the side menu for it. The side menu just has that same list of ministries in it, and when a link is clicked just takes you down the page to the selected ministry. But when I output the ministries on the page from the DB I do not know how to make that continue to work. So if I clicked on the ‘bus ministry link’:
[code]
It would go to here on the page:
[code]
Every week we transport children and adults to church where they are shown God's love and taught His Word.
But now that I am outputting through PHP from a DB I cannot figure out how to implement that. Here is my output code:
[php]<?php $query=“SELECT * FROM ministries
“;
$resource=mysql_query($query);
while($result=mysql_fetch_array($resource))
{
echo “”.$result[‘name’].”
”.$result[‘ministry’]."
<div class=“content_box”> ";
}
?>[/php]
I hope this is not too much of me to ask, but I had to try I thank you guys for your time and help with everything so far, as well.