Dynadot — .com Transfer

PHP Error

NamecheapNamecheap
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
•••
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
•••
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
•••
please post the entire code for us to help you
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back