rodhow Posted September 20, 2012 Share Posted September 20, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/268603-change-title-meta-tags-in-php/ Share on other sites More sharing options...
Christian F. Posted September 20, 2012 Share Posted September 20, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/268603-change-title-meta-tags-in-php/#findComment-1379575 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.