Hello i need some php help, i use the following code in the title of my website:
<title><?
if($q != ""){
echo "$q Name of my Website";
}
else{
echo "Name of my Website";
}
?></title>
Everything works fine, the problem however is when i want to add another line like this:
<title><?
if($q != ""){
echo "$q Name of my Website";
}
if($type != ""){
echo "$type Name of my Website";
}
else{
echo "Name of my Website";
}
?></title
So now when i go to the search page it looks like this (in the title): "$q Name of my Website$type Name of my Website", i have tryed to add some break codes, but just cant seem to get it working.
<title><?
if($q != ""){
echo "$q Name of my Website";
}
else{
echo "Name of my Website";
}
?></title>
Everything works fine, the problem however is when i want to add another line like this:
<title><?
if($q != ""){
echo "$q Name of my Website";
}
if($type != ""){
echo "$type Name of my Website";
}
else{
echo "Name of my Website";
}
?></title
So now when i go to the search page it looks like this (in the title): "$q Name of my Website$type Name of my Website", i have tryed to add some break codes, but just cant seem to get it working.












