Rimmskinator
New Member
- Dec 29, 2014
- 25
- 2
Hey everyone,
I've been working on a little project of mine and I've hit a problem (PHP)...
As this project will be released on the forums and on my website, I intend it to be very easy to customize.
So in my config file I have a few classes which are pretty much settings:
In this instance I will be using these two classes in every html title tag:
But if the $site_desc=''; is empty I want it to automatically change to what I manually enter so I tried this:
Hoping that if the $site_desc was empty it would say 'Index' or if I had it on about.php it would say About if I manually entered it?
Help?
I've been working on a little project of mine and I've hit a problem (PHP)...
As this project will be released on the forums and on my website, I intend it to be very easy to customize.
So in my config file I have a few classes which are pretty much settings:
Code:
$site_name='Name Here';
$site_desc='My Site';
Code:
<title><?php echo $site_name ; ?> - <?php echo $site_desc ; ?></title>
Code:
<title><?php echo $site_name ; ?> - <?php echo $site_desc, ; else echo Index ; ?></title>
Help?