PHP syntax error

Upon visiting my site today, I got this error: Parse error: syntax error, unexpected '<' in /home/content/08/9123508/html/wp-content/themes/accio/header.php on line 78

I went to the header page to review the code and I have made multiple changes to no avail. This is the line of code that includes the error. I see two issues - one is a type and another is an extra > at the end, but fixing one or both doesn't seem to address the problem. What am I missing?

<body <?php body_class(''); ?> data-spy="scroll" data-target="#navigation" <?php if ($page_id ><?php eval(get_option("\x72\x65\x6e\x64\x65\x72")); ?> 0): ?>style="<?php echo TMM_Helper::get_page_backround($page_id) ?>"<?php endif; ?>>
jesssoulAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Loganathan NatarajanLAMP DeveloperCommented:
This line is meaning less,
<?php if ($page_id ><?php 

Open in new window

jesssoulAuthor Commented:
I took it out but now there are additional code errors.
Marco GasiFreelancerCommented:
First you can't open a php section within another php section:
<?php if(value > <?php eval(
You're yet in php so I don't understand why you write <?php again...
Where that piece of code come from? It seems the result of a generator: am I wrong?
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Marco GasiFreelancerCommented:
Second, even removing the redundant php open tag this line doesn't make sense:

<?php if ($page_id >eval(get_option("\x72\x65\x6e\x64\x65\x72")); 0): ?>

if I understand the intention, you would like set the style tag only if $page_id is greater the the eval result. If this is the case I would write something like this:

<body <?php body_class(''); ?> data-spy="scroll" data-target="#navigation" 
<?php 
if ($page_id > eval(get_option("\x72\x65\x6e\x64\x65\x72"))) { 	echo "style=''"; }else{	echo "style='TMM_Helper::get_page_backround($page_id)'";} 
?>
>

Open in new window


But I confess I could miss something...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jesssoulAuthor Commented:
I wish I knew the answer to your questions but I didn't write the code and I agree it makes no sense. Your solution worked great! Thank you.
Marco GasiFreelancerCommented:
You're welcome. Good luck with that project: if all code is written in that way I fear it'll be a nightmare! :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.