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 Getting a parse error on line 144 help please

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

Advanced Search


Reply
 
LinkBack Thread Tools
Old 06-28-2009, 09:50 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jun 2009
Posts: 2
co.ador is an unknown quantity at this point
 



Getting a parse error on line 144 help please


PHP Code:
<?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>";
????: NamePros.com http://www.namepros.com/programming/593011-getting-parse-error-line-144-help.html
    echo
'<td width="800" height="100%" bgcolor="#FFFFFF" class="quelo">'
    while(
$row2 mysql_fetch_row($result)) {
        
$get '?';
        
$delimiter '';
        foreach(
$ids as $id){
????: NamePros.com http://www.namepros.com/showthread.php?t=593011
            
$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.
co.ador is offline   Reply With Quote
Old 06-28-2009, 02:28 PM   #2 (permalink)
NamePros Member
Join Date: Aug 2008
Posts: 44
bbosh is an unknown quantity at this point
 



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.
bbosh is offline   Reply With Quote
Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
List your girls names jacpar Dot MOBI 26 03-24-2007 10:50 AM
bin/bash using 50% cpu usage, all the time! BillyConnite Web Hosting Discussion 6 09-16-2006 06:06 AM
quicktraveltips.com- 1000 + keyword based domains with websites for sale. gdtechindia Domains For Sale - Fixed Price 13 08-21-2006 02:31 PM
my site, (constructive critisizm plz) sin Web Design Reviews 4 04-20-2006 08:31 AM
PHP and FTP Barrucadu Programming 3 10-21-2005 11:48 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:01 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