I am stumped why my web browser is saying:
Parse error: syntax error, unexpected $end in
/usr/home/choroid/public_html/new/crf_header.php on line 51
<?PHP
if ((!$sitestyle) || $sitestyle == 'layout' ) {
echo '<a id="switch" href="../switcher.php?set=layout_large">Increase Font
Size</a>';
}
else {
if ((!$sitestyle) || $sitestyle == 'layout' ) {
echo '<a id="switch" href="../switcher.php?set=layout_small">Decrease Font
Size</a>';
}
else {
if ((!$sitestyle) || $sitestyle == 'layout' ) {
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font
Size</a>';
}
switch ((!$sitestyle) || $sitestyle == 'layout' ):
case layout_medium:
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font
Size</a>';
break;
case "layout_large":
echo '<a id="switch" href="../switcher.php?set=layout_large">Increase Font
Size</a>';
break;
case "layout_small":
echo '<a id="switch" href="../switcher.php?set=layout_small">Decrease Font
Size</a>';
break;
default:
echo '<a id="switch" href="../switcher.php?set=layout_medium">Default Font
Size</a>';
endswitch;
?>
And their is nothing on line 51. Line 50 is "?>". I am trying to follow along
with:
http://php.net/manual/en/control-structures.switch.php
Can anyone helpÉ Thank you.
I am trying to get `"layout_medium.css" as a default font size for
"layout.css". And to buttons under my curve graphic:
1. Increase Font Size - layout_large.css and
2. Decreas font size - layout_small.css.
Angus MacKinnon
Infoforce Services
http://www.infoforce-services.com
"Faith is the strength by which a shattered world shall emerge into
the light." - Helen Keller
------------------------------------
Please remember to write your response BELOW the previous text.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-listYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/php-list/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/