I'm using OsCommerce for my shopping chart. It was working fine a few days ago, but when I tried to access it again, I received this error: 'Parse error: syntax error, unexpected '=', expecting ')' on line 27
This is line 27:
$heading[] = array('params' =>'class="menuBoxHeading"', 'text' => 'osCommerce'); $contents[] = array('params' => 'class="infoBox"', 'text' => '<A href="http://www.oscommerce.com" target=_blank>' . BOX_ENTRY_SUPPORT_SITE . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/forum" target=_blank>' . BOX_ENTRY_SUPPORT_FORUMS . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/mlists" target=_blank>' . BOX_ENTRY_MAILING_LISTS . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/bugs" target=_blank>' . BOX_ENTRY_BUG_REPORTS . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/faq" target=_blank>' . BOX_ENTRY_FAQ . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/irc" target=_blank>' . BOX_ENTRY_LIVE_DISCUSSIONS . '</A><BR>' . '<A href="http://www.oscommerce.com/community.php/cvs" target=_blank>' . BOX_ENTRY_CVS_REPOSITORY . '</A><BR>' . '<A href="http://www.oscommerce.com/about.php/portal" target=_blank>' . BOX_ENTRY_INFORMATION_PORTAL . '</A>'); $box = new box; echo $box->menuBox($heading, $contents); echo '<BR>'; $orders_contents = ''; $orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'"); $orders_pending = tep_db_fetch_array($orders_pending_query); $orders_contents .= '<A href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</A>: ' . $orders_pending['count'] . '<BR>'; } $orders_contents = substr($orders_contents, 0, -4); $heading = array(); $contents = array(); $heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_ORDERS); $contents[] = array('params' => 'class="infoBox"', 'text' => $orders_contents); $box = new box; echo $box->menuBox($heading, $contents); echo '<BR>'; $customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS); $customers = tep_db_fetch_array($customers_query); $products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'"); $products = tep_db_fetch_array($products_query); $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS); $reviews = tep_db_fetch_array($reviews_query); $heading = array(); $contents = array(); $heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_STATISTICS); $contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<BR>' . BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<BR>' . BOX_ENTRY_REVIEWS . ' ' . $reviews['count']); $box = new box; echo $box->menuBox($heading, $contents); echo '<BR>'; $contents = array(); if (getenv('HTTPS') == 'on') { $size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<I>' . BOX_CONNECTION_UNKNOWN . '</I>'); $contents[] = array('params' => 'class="infoBox"', 'text' => tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size)); } else { $contents[] = array('params' => 'class="infoBox"', 'text' => tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED); } $box = new box; echo $box->tableBlock($contents); ?> </TD></TR></TBODY></TABLE></TD>
I'm using PHP Designer 2005 as my editor, and I still don't see where I have the "unexpected ="
Would appreciate any help.
Thanks,
Jeanie