PHP Error

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Unknown

Established Member
Impact
3
I keep getting this error:

Parse error: parse error, unexpected $end in C:\Inetpub\vhosts\teen-terminal.com\httpdocs\forums\admincp\admin_advertising_management.php on line 242


Line 242 is the end of the file. I know that the problem is with the following code becuase I placed it in its own php file and it gave me the same error. I'm using the heredc code to insert this:

PHP:
	$viewrow = <<<content
            <tr>
          <td align="center" class="row1" nowrap="nowrap"><b>{$rowid}</b></td>
          <td align="center" class="row2" nowrap="nowrap"><b>{$rowstatus}</b></td>
          <td align="center" class="row1" nowrap="nowrap"><b>{$showfromdate}</b></td>
          <td align="center" class="row2" nowrap="nowrap"><b>{$showtodate}</b></td>
          <td align="center" class="row1" nowrap="nowrap">
            <b>{$rowitemname}</b>
            <br>
             
            //<a href="javascript:void();" onClick="return editItem($rowid);">Edit</a>
             
            //<a href="javascript:void();" onClick="return deleteItem($rowid);">Delete</a>
             
            <br>
          </td>
          <td align="center" class="row2" nowrap="nowrap"><b>{$rowadvertister}</b></td>
          <td align="center" class="row1" nowrap="nowrap"><b>{$rowprice}</b></td>
          <td align="center" class="row2" nowrap="nowrap"><b>{$rowemail}</b></td>
          <td align="left"   class="row1" nowrap="nowrap"><b>{$showcomments}</b></td>
        </tr>
content;    
print $viewrow;
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I'm not sure. I had an issue like this before. I think I either put the echo statement to the very left of the margin OR I put the data. I'm pretty sure it was the echo statement.

So it looked like this:

echo <<<EOT
stuff
EOT;
 
0
Close
Well I fixed that one. Can you look @ the code I posted now? The first one was a problem b/c I forgot to put the EOT; all the way to the beginning with no spaces.
 
0
Close
please post the entire code for us to help you
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back