asalute Posted February 13, 2014 Share Posted February 13, 2014 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. Link to comment https://forums.phpfreaks.com/topic/286167-sntax-error-unexpected-in-small-code-snippet/ Share on other sites More sharing options...
.josh Posted February 13, 2014 Share Posted February 13, 2014 missing closing parenthesis for tep_image() Link to comment https://forums.phpfreaks.com/topic/286167-sntax-error-unexpected-in-small-code-snippet/#findComment-1468732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.