Dixie531 Posted June 19, 2005 Posted June 19, 2005 Ok, I don't know what I did exactly but I have a bunch of n's on my categories page. How do I get rid of that? I have included a link to my cart. As I mentioned in other posts, I tried to set up an about us page. When I click on it, I get an error message, and the file was defined in includes/filenames.php. http://dljewelrycreations.com/cart/index.php?cPath=33
bglkk Posted June 19, 2005 Posted June 19, 2005 http://www.oscommerce.info/kb/Catalog_Guid...on_Problems/212 "Buy the ticket, take the ride..." -HST
Guest Posted June 19, 2005 Posted June 19, 2005 Hi Dixie had a look at your source code. You are adding an 'n' at the end of a </td> when it comes to your category listings. Find this in your index.php $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; } } It looks like you have removed the backslash in the "\n" in the above code. The \n is there to say "new line" Hope this helps PhilipH
bglkk Posted June 19, 2005 Posted June 19, 2005 The File Manager will do that...get yourself a good php editor and FTP client instead. "Buy the ticket, take the ride..." -HST
Recommended Posts
Archived
This topic is now archived and is closed to further replies.