Jump to content

sntax error unexpected ';' in small code snippet


asalute

Recommended Posts

Greetings,

 

I am trying to figure out why an error is being thrown here is the code. the error is Parse error: syntax error, unexpected ';'

 
echo '<div id="liGal"><ul class="mainImage" >' . "\n";    
$pi_counter = 0;    while ($listing = tep_db_fetch_array($listing_query)) {  
$pi_counter++;            
$pi_entry = '<li>';

$pi_entry .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'] . '</a>';   // <-- this is the line         
 
$pi_entry .= '</li>';
    
} echo '</ul></div>';
 

the line throwing the error is bolded and italisized. thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.