X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   displaying icons (https://forum.x-cart.com/showthread.php?t=3331)

klewlis 06-24-2003 01:37 PM

displaying icons
 
i'm not sure if this is the right forum.... anyhoo, I am making a gateway page that is not really a part of xcart but uses some of the items out of my store. i want to display the category icons in a list, and am using this:

Code:

$strSQL = mysql_query("SELECT xcart_categories.categoryid, xcart_categories.category FROM xcart_categories, xcart_icons WHERE xcart_categories.categoryid = xcart_icons.categoryid ORDER BY order_by");
while ($row = mysql_fetch_array($strSQL))
{
    echo "<tr>\n";
    echo "<td><img src=\"icon.php?categoryid=".$row[categoryid]."&tmp=Y\" alt=\"".$row[category]."\"></td>\n";
    echo "</tr>\n";
}


and it's only showing the first one... before i added the tmp=Y it didn't even show that. am i missing something?

it is retrieving all the records and printing out the string, but the icon.php is only working on the first item.

klewlis 06-24-2003 02:41 PM

hrm... i think something else weird is going on too... because when i add a subcategory to one of the main categories, the main category image doesn't show up in the store as it should....

any ideas?

klewlis 06-25-2003 10:45 AM

the images on my products aren't working either. it just doesn't display anything, and doesn't save (when i go back in to modify again, it's set back to the default "no image").

is this a bug? does anyone have the fix?

klewlis 07-29-2003 01:59 PM

anyone?


All times are GMT -8. The time now is 03:49 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.