NameSilo

Getting a parse error on line 144 help please

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back