NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP Error

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-25-2005, 06:33 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Oct 2004
Location: IL
Posts: 657
Unknown will become famous soon enoughUnknown will become famous soon enough
 



PHP Error


I keep getting this error:

Parse error: parse error, unexpected $end in C:\Inetpub\vhosts\teen-terminal.com\httpdocs\forums\admincp\admin_adverti sing_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 Code:
    $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>
            &nbsp;
            //<a href="javascript:void();" onClick="return editItem(
$rowid);">Edit</a>
????: NamePros.com http://www.namepros.com/programming/66825-php-error.html
            &nbsp;
            //<a href="javascript:void();" onClick="return deleteItem(
$rowid);">Delete</a>
            &nbsp;
            <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>
????: NamePros.com http://www.namepros.com/showthread.php?t=66825
        </tr>
content;    
print 
$viewrow
Last edited by Unknown; 01-25-2005 at 06:59 PM.
Unknown is offline  
Old 01-25-2005, 06:39 PM   #2 (permalink)
NamePros Member
Join Date: Jan 2005
Location: Tampa, FL
Posts: 178
paitken is an unknown quantity at this pointpaitken is an unknown quantity at this point
 



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;
paitken is offline  
Old 01-25-2005, 07:00 PM THREAD STARTER               #3 (permalink)
NamePros Regular
Join Date: Oct 2004
Location: IL
Posts: 657
Unknown will become famous soon enoughUnknown will become famous soon enough
 



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.
Unknown is offline  
Old 01-25-2005, 10:06 PM   #4 (permalink)
New Member
Join Date: Jan 2005
Posts: 2
Lonny is an unknown quantity at this point
 



please post the entire code for us to help you
Lonny is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:34 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger