Unstoppable Domains

Getting a parse error on line 144 help please

Spaceship Spaceship
Watch

co.ador

New Member
Impact
0
PHP:
<?php
$query = "SELECT * FROM menu WHERE id IN (1, 2, 3, 4)"; 
// execute query 
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error()); 
// see if any rows were returned 
if (mysql_num_rows($result) > 0) { 
    // yes 
    // print them one after another 
    echo '<table  class="felo">'; 
    echo "<tr>";
    echo'<td width="800" height="100%" bgcolor="#FFFFFF" class="quelo">'; 
    while($row2 = mysql_fetch_row($result)) {
        $get = '?';
        $delimiter = '';
        foreach($ids as $id){
            $get .= 'id[]=' . $id . $delimiter;
            $delimiter = '&';
        }
        echo <<<ROW // line 144--
            <table class="trelo" >
                <tr>
                    <td width="152" rowspan="2" class="cebo">
                        <h3 align="center"><a href="itemdetails.php?{$get}> {$row2[3]}</a> </h3>
                        <p>
                            <a href="#"><img src="{$row2[0]}" width="140" height="160" alt="product" style=" border-color:#FF6600; border:thin; border-style:solid;"/></a>
                        </p>
                    </td>
                </tr>
            </table> 
ROW;
}
    echo "</td>";
    echo "</tr>";
    echo "</table>";
}

What could that be I have research but from my limited view I don't see any mistake.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
ensure there is absolutely no whitespace after <<<ROW (except the new line). Remove the comment.

If you get unexpected $end error, replace echo with print.

-Brendon.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back