Fruit Bandit Posted February 22, 2004 Posted February 22, 2004 hi ive sorted the ns on my categories but now i cant get into catalog. i keep getting this error message: Parse error: parse error, expecting `','' or `';'' in /mnt/web_h/d02/s18/b01e05b6/www/shop/nfoscomm/catalog/admin/categories.php on line 795 Can anyone help? is this a common error? fruit "You grow it...We'll nick it."
Destavator Posted February 22, 2004 Posted February 22, 2004 you should post a bit out of this file, like +-3 rows of line 795
Fruit Bandit Posted February 22, 2004 Author Posted February 22, 2004 794-797 inclusive: if (isset($cInfo) && is_object($cInfo) && ($categories['categories_id'] == $cInfo->categories_id) ) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . ''">' . "n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories['categories_id']) . ''">' . "n"; Thanks for the help Fruit Bandit "You grow it...We'll nick it."
241 Posted February 22, 2004 Posted February 22, 2004 This is what I have for this section if (isset($cInfo) && is_object($cInfo) && ($categories['categories_id'] == $cInfo->categories_id) ) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories['categories_id'])) . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories['categories_id']) . '\'">' . "\n"; } the only difference I see is the fact that I use the \ in my code throughout No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Fruit Bandit Posted February 22, 2004 Author Posted February 22, 2004 are there no instances of / in your code? only \ I don't know anything about php but i do know the editor corrupts files by removing slashes (i had a problem earlier with ns all over my shop) "You grow it...We'll nick it."
241 Posted February 22, 2004 Posted February 22, 2004 No, not in the part I have just posted, my site works fine, I am just trying to see if I can lend a little light to your issues No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.