![]() |
Parse error- can anyone find the issue?
The error is on this page: http://dstone1029.net/box-office-analyst-dev/
Can anyone tell me what's wrong with the corresponding code below? Thanks for any help you can offer! Code:
<p> |
Post the actual error itself.
In this case, I'd expect that it'll be an unexpected $end error. This is invalid: <?php>. Depending on configurations one of the following must be used:<?php ... ?><? ... ?><% ... %><script language="php"> ... </script>Edit: Also, things like this are invalid: <p>HERE;</p>. HEREDOC ending delimiters MUST be on a line by themselves and not be preceded by any characters. |
That is some truly disgusting code...
Could you give us a large snippet? Your error: PHP Code:
Just post the entire thing if you could |
You have done a lot of stuff wrong. You have used the HEREDOC wrongly, dropped into and out of PHP and HTML code terribly.
The following will probably not work as you wanted your code to work because I do not see the rest of your code but it should start you off as to how you should drop into and out of PHP code. PHP Code:
|
Thanks for the replies... I'm aware it's hideous. I didn't write it, but was asked to work with it. :) Here's the includes/runtime.php:
Code:
<?php |
Redcoder-- That did actually work (THANKS!), but to a point... where is it getting the text that rendered before/after the table on the page-- see link here:
http://dstone1029.net/box-office-analyst-dev/ Quote:
|
Code:
<td id="leftcell" style="color:#0000ff; font-size:12px;"> <a style="color:#0000ff;" href="$trailerlink" rel= |
Just the comments that were wrongly left in the HTML code. HTML outputs them like normal HTML.
If the above worked, the below should do it. Although I think that at one time it will become unstable because of hanging <p> and such. Try and redo it carefully. PHP Code:
|
You're a genius and I feel like an idiot... got excited and hit the enter key. :) Thanks for all your work!
|
The <a> tag is being closed prematurely. Here's the generated HTML.
PHP Code:
|
Quote:
|
Thanks, TangoForce. I agree with you. I was only called in to add a WP plugin that would enable the links to open in a new window. I am not the PHP person, but was trying to get it to show up on the page, so I could enable the plugin.
|
Quote:
runtime.php/cache.php runtime.php/const.php Edit: As FouLu has pointed out, I am infact wrong here (forgot that dirname() function was being used). |
Quote:
|
Quote:
Quote:
|
| All times are GMT +1. The time now is 10:58 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.