

![]() |
| ![]() | |||||||
|
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| The One Name: Lukas Last Online: Yesterday 12:03 AM iTrader: (39) Join Date: Mar 2005
Posts: 1,914
DNF$: 730 Location: New Jersey
Country: | How to combine two values into one string? 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! |
| | |
| Sponsored Ads |
| | #2 (permalink) |
| Gold Lifetime Member Last Online: 08-20-2006 08:41 PM iTrader: (0) Join Date: Dec 2004
Posts: 10
DNF$: 125 Location: Switzerland | Re: How to combine two values into one string? ... 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? |
| | |
| | #3 (permalink) |
| The One Name: Lukas Last Online: Yesterday 12:03 AM iTrader: (39) Join Date: Mar 2005
Posts: 1,914
DNF$: 730 Location: New Jersey
Country: | Re: How to combine two values into one string? yes, this is what I was looking for. Thanks!
__________________ Cogito, ergo sum! |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |