Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

displaying icons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-24-2003, 01:37 PM
 
klewlis klewlis is offline
 

Member
  
Join Date: May 2003
Posts: 22
 

Default 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.
Reply With Quote
  #2  
Old 06-24-2003, 02:41 PM
 
klewlis klewlis is offline
 

Member
  
Join Date: May 2003
Posts: 22
 

Default

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?
Reply With Quote
  #3  
Old 06-25-2003, 10:45 AM
 
klewlis klewlis is offline
 

Member
  
Join Date: May 2003
Posts: 22
 

Default

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?
Reply With Quote
  #4  
Old 07-29-2003, 01:59 PM
 
klewlis klewlis is offline
 

Member
  
Join Date: May 2003
Posts: 22
 

Default

anyone?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:55 PM.

   

 
X-Cart forums © 2001-2020