If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I'm a php newbie and I'm working on my php based site, but got stuck abit because I want to update the page title for each page using variables from a database. So I have 2 variables: $category and $title and want them to be part of the page title so that it would look like this:
MySite.com - $category - $title.
Can anybody help find the right code? Thanks in advance.
Cogito, ergo sum!
... you could use it in the title-tag of the html-page with the following code
<?php echo "$category - $title"; ?>
... or did I misunderstand your problem?
yes, this is what I was looking for. Thanks!
Cogito, ergo sum!
no problem at all.
<title><?php echo $category .'-'.$title;?></title>
is faster.
Bookmarks