Jump to content

Recommended Posts

Hello,

 

I am a novice at PHP and I have a quick question. I am trying to pull a title and change the keywords in the meta tags dynamically by using information from a database. How do I query my database specifically for these actions and what do i put on the landing page. for example <title> <?php echo 'title' ?></title> or something of that nature? Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/268603-change-title-meta-tags-in-php/
Share on other sites

For this I think you're better off starting with a PHP & MySQL tutorial, as it'll explain all of the basic stuff for you in an easy and (relatively) complete manner. Once you've understood the basics, you can start to plan your code and then write it.

Should you have a specific problem along the way, then you're more than welcome to post about it here. Just remember to post any error messages, in their full, the code in question, and anything else you think might be relevant for the problem at hand. After all, the more information we get from you, the easier it'll be for us to help you.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.