How do I pull up the "Description" into the footer.php?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
franklymydear
Forum Newbie
Posts: 2
Joined: Mon Jun 22, 2009 5:00 pm

How do I pull up the "Description" into the footer.php?

Post by franklymydear »

Hi all, newbie here, Hi :D

I want to add each of my pages meta descriptions into the footer text, Im using a database, mysql etc. Is there a snippet that I could use with "echo" "description" or similar? I want the script to automatically add each pages individual description into the footer as opposed to the sites main description for the index page.

Thanks in advance
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How do I pull up the "Description" into the footer.php?

Post by onion2k »

I get the impression you're talking about a specific PHP application rather than general programming. You've not really provided enough information for anyone to help you though.
franklymydear
Forum Newbie
Posts: 2
Joined: Mon Jun 22, 2009 5:00 pm

Re: How do I pull up the "Description" into the footer.php?

Post by franklymydear »

onion2k wrote:I get the impression you're talking about a specific PHP application rather than general programming. You've not really provided enough information for anyone to help you though.
Hi, The specific script is a directory script and the description is coming from the database.

When a new category/sub category is added via admin, I add a description then on the preset "add category" form page.
I would like that description to be pulled into the individual pages footers so that they are unique to each page.
Post Reply